On Sat, Oct 31, 2015, at 13:03, Arturo Borrero Gonzalez wrote:
> On 30 October 2015 at 13:27, Benno Schulenberg <bensb...@justemail.net> wrote:
> >
> >   src/nano  README  2>TRAIL
> >
> > press Ctrl+Right three times, and Ctrl+Left twice,
> > and then Ctrl+X and attach the TRAIL file here?
> 
> find it attached.

Strange.  Your xfce terminal somehow adds 6 to the values that
some other terminals produce.  (My 0.4.3 xfce terminal still
produces complicated escape sequences: 1b  5b  31  3b  35  43
and 1b  5b  31  3b  35  44.)

Do you maybe have some Lock key enabled, something like
CapsLock or NumLock or ScrollLock?

Anyway, when you apply the attached patch to your self-compiled
source tree and rerun make, src/nano should behave correctly.
Does it?

Benno

-- 
http://www.fastmail.com - Does exactly what it says on the tin

Index: src/nano.h
===================================================================
--- src/nano.h	(revision 5382)
+++ src/nano.h	(working copy)
@@ -569,6 +569,8 @@
  * terminals produce them, and they are beyond KEY_MAX of ncurses. */
 #define CONTROL_LEFT 539
 #define CONTROL_RIGHT 554
+#define XFCE_CTRL_LEFT 545
+#define XFCE_CTRL_RIGHT 560
 
 #ifndef NANO_TINY
 /* An imaginary key for when we get a SIGWINCH (window resize). */
Index: src/winio.c
===================================================================
--- src/winio.c	(revision 5382)
+++ src/winio.c	(working copy)
@@ -635,11 +635,13 @@
 		break;
 #endif
 	    case CONTROL_LEFT:
+	    case XFCE_CTRL_LEFT:
 #ifndef NANO_TINY
 		retval = sc_seq_or(do_prev_word_void, 0);
 #endif
 		break;
 	    case CONTROL_RIGHT:
+	    case XFCE_CTRL_RIGHT:
 #ifndef NANO_TINY
 		retval = sc_seq_or(do_next_word_void, 0);
 #endif

Reply via email to