Subject: Re: pkg/37133 (Updates editors/nano from 1.2.5 to 2.0.6)
To: None <obache@NetBSD.org, gnats-admin@netbsd.org,>
From: OBATA Akio <obache@NetBSD.org>
List: pkgsrc-bugs
Date: 10/23/2007 14:00:07
The following reply was made to PR pkg/37133; it has been noted by GNATS.

From: OBATA Akio <obache@NetBSD.org>
To: gnats-bugs@NetBSD.org, Jason White <jdw-pkgsrc@menelos.com>
Cc: 
Subject: Re: pkg/37133 (Updates editors/nano from 1.2.5 to 2.0.6)
Date: Tue, 23 Oct 2007 22:56:20 +0900

 --==========209D74F42C934E8C4A90==========
 Content-Type: text/plain; charset=us-ascii; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 
 
 --On 2007/10/16 2:55 +0000 Jason White <jdw-pkgsrc@menelos.com> wrote:
 
 >    Not with nano 2.* it doesn't.  Control-c, control-\ either aren't
 > caught or   are only caught once; control-a, control-e commands either
 > don't work, only   work once, or in the case of control-{a,e}, the cursor
 > is logically moved to   the beginning/end of the line, but the on-screen
 > cursor doesn't move. It's   a real mess and utterly unusable with stock
 > curses.
 
 Would you try an attached patch? It should fix problems with NetBSD's 
 curses.
 On my NetBSD 4.0_RC2, seems fine.
 
 -- 
 "Of cource I love NetBSD":-)
 OBATA Akio / obache@NetBSD.org
 --==========209D74F42C934E8C4A90==========
 Content-Type: text/plain; charset=us-ascii; name=patch-aa; format=flowed
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 $NetBSD$
 
 --- src/nano.c.orig	2007-01-12 02:58:12.000000000 +0000
 +++ src/nano.c
 @@ -1280,6 +1280,7 @@ void terminal_init(void)
  	cbreak();
  	nonl();
  	noecho();
 +	raw();
  	disable_extended_io();
  	disable_signals();
  	if (!ISSET(PRESERVE))
 @@ -2230,6 +2231,7 @@ int main(int argc, char **argv)
 
  	/* Make sure the cursor is in the edit window. */
  	reset_cursor();
 +	wrefresh(edit);
 
  #ifndef NANO_TINY
  	if (!jump_buf_main) {
 
 --==========209D74F42C934E8C4A90==========--