bug-ncurses
[Top][All Lists]
Advanced

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

Re: Why does Esc take so long to be detected by getch()?


From: Thomas Dickey
Subject: Re: Why does Esc take so long to be detected by getch()?
Date: Wed, 12 May 2004 06:15:36 -0400 (EDT)

On Tue, 11 May 2004, Steve Litt wrote:

> Hi all,
>
> First, is there a way I could subscribe to address@hidden so that
> moderation isn't necessary?
>
> Second, I'm using F9 for the accept key on my form, and Esc for the bail key.
> Trouble is, when I press Esc, the getch() function takes almost 2 seconds to
> complete. Any other key is instantaneous.
>
> I'd really like Esc to stand for "bail out of this form, I don't want to
> complete it". Esc is completely intuitive for that functionality. But the 2
> second delay will doubtlessly leave the user in vertigo.
>
> Any ideas how to speed up processing of the Esc key?

If you're only concerned about Linux console, you can set ESCDELAY to a
small value (see the ncurses manpage).

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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