[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] multi-character escape sequences

From: Benno Schulenberg
Subject: Re: [Nano-devel] multi-character escape sequences
Date: Mon, 04 Jul 2016 21:11:03 +0200

> On Mon, Jun 27, 2016, at 22:40, David Ramsey wrote:
> > (For example: If you press Esc O to toggle
> > more-space mode, and then type A as part of the current buffer, that's
> > one thing.  However, if input is stalled and keystrokes accumulate, as
> > you put it, Esc O A will be read as a complete sequence, in which case
> > it'll be interpreted as the Up arrow key, which users probably won't
> > expect.)

This misinterpretation could have been prevented by not giving Alt+O
any function, and by making it unbindable, just like Alt+[.

Luckily, by default Alt+O is bound to something that the user will
seldom or never use -- they either set morespace in their ./nanorc
or don't use it at all.  I can't see anyone toggling it now and then,
and if they do, they probably wait to see the result.  So the risk of
that keystroke ever being misinterpreted due to succeeding keystrokes
is virtually nil.  (Famous last words.)

(I now see that typing Alt+[ results in the message "Unbound key".
It should probably say "Unbindable key" or "Incomplete sequence"


-- - A fast, anti-spam email service.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]