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: Brian Raiter
Subject: Re: Why does Esc take so long to be detected by getch()?
Date: Tue, 11 May 2004 18:32:50 -0700

> Any ideas how to speed up processing of the Esc key?

The problem is that Esc is the first character of several multibyte
keystroke sequences, such as the arrow keys. So when ncurses gets an
ESC character, it waits for a while to see if any more characters are
coming, in order to decide if the ESC is part of a multibyte sequence
or really just the Esc key.

You can use the notimeout() function to turn off this wait. However,
that means that you'll need to deal with any ESC-prefixed sequences
yourself.

b





reply via email to

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