🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
3 messages
3 total messages Started by Sudarshan S. Chawathe Wed, 02 Dec 1992 22:54
Esc key seems slower with latest nn 6.4.18?
#3447
Author: Sudarshan S. Chawathe
Date: Wed, 02 Dec 1992 22:54
17 lines
1491 bytes
I recently compiled and started using nn 6.4.18

As indicated in the :man, I mapped my escape key to ^G so that I can
use it to back out of many things, as I was used to doing on nn 6.4.5.
However, I notice that there is a delay of about 1 sec after I press
Esc before nn backs out of the mail/forward/save etc.  If I use ^G
directly, the effect is immediate?

I know this sounds trivial, but I use nn because I like the speed, so
it's important to me.  Does anyone have a clue why this is happening?

Thanks,

-Chaw

_________________________________________________________________________
Chaw@cs.Stanford.edu                                         tat tvam asi
Re: Esc key seems slower with latest nn 6.4.18?
#3453
Author: Michael Elbel
Date: Thu, 03 Dec 1992 14:59
21 lines
1601 bytes
In <chaw.723336890@Pluto.Stanford.EDU> Chaw@cs.Stanford.edu (Sudarshan S. Chawathe)   writes:

>I recently compiled and started using nn 6.4.18

>As indicated in the :man, I mapped my escape key to ^G so that I can
>use it to back out of many things, as I was used to doing on nn 6.4.5.
>However, I notice that there is a delay of about 1 sec after I press
>Esc before nn backs out of the mail/forward/save etc.  If I use ^G
>directly, the effect is immediate?

>I know this sounds trivial, but I use nn because I like the speed, so
>it's important to me.  Does anyone have a clue why this is happening?

That is due to nn understanding function and cursor keys. These
send escape sequences (at least on most terminals). To distinguish
a single escape character from a escape sequence you have to
wait a certain time after receiving the escape.

Michael
--
Michael Elbel - me@dude.pcs.com  |  Fermentation fault (coors dumped)
Re: Esc key seems slower with latest nn 6.4.18?
#3455
Author: David E A Wilson
Date: Thu, 03 Dec 1992 23:17
20 lines
1728 bytes
Chaw@cs.Stanford.edu (Sudarshan S. Chawathe)   writes:
>As indicated in the :man, I mapped my escape key to ^G so that I can
>use it to back out of many things, as I was used to doing on nn 6.4.5.
>However, I notice that there is a delay of about 1 sec after I press
>Esc before nn backs out of the mail/forward/save etc.  If I use ^G
>directly, the effect is immediate?

At a guess you are using an ANSI terminal (eg vt100 etc). On an ANSI terminal
the arrow & function keys send escape sequences - eg ESC [ A is the up arrow
key. If you press ESC, curses (and hence nn) does not know if this is the
ESC key or the first character of an escape sequence. The only way to find
out is to wait a short period of time. If no more characters arrive then it
was the ESC key. If a [ arrives then it is the start of an escape sequence
and it waits for the next character.

In summary - it is unavoidable if you have any function keys that start
with ESC.
-- 
David Wilson				+61 42 213802 voice, +61 42 213262 fax
Dept Comp Sci, Uni of Wollongong	david@cs.uow.edu.au
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads