bug-ncurses
[Top][All Lists]
Advanced

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

Re: Is there an API call as substitute to ESCDELAY environment variable


From: Pavel Stehule
Subject: Re: Is there an API call as substitute to ESCDELAY environment variable ?
Date: Mon, 2 Mar 2020 12:54:10 +0100



po 2. 3. 2020 v 12:19 odesílatel Marc Rechté <address@hidden> napsal:
Hi,

I don't know where to post that question.

I need a non blocking version of getch, so I set nodelay(stdscr, TRUE)

However the standard delay for distinguishing "esc" key from "functions"
keys pressed is too high IMO.

According to man page, timeout() is not the function to use for that
purpose.

Is there an alternative to setting ESCDELAY environment variable before
launching the program ?

for some not too old ncurses

#ifdef NCURSES_EXT_FUNCS

    set_escdelay(25);

#endif


Thanks


reply via email to

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