bug-ncurses
[Top][All Lists]
Advanced

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

notimeout() function


From: Dan Gookin
Subject: notimeout() function
Date: Thu, 23 Feb 2006 14:33:07 -0800

I'm running some tests on the notimeout() function and haven't noticed
any real difference between the TRUE and FALSE states. I've turned on
keypad() for the window, and with keypad() on, the delay is very
noticeable. But when notimeout(win,TRUE) is set, the same delay
happens. I believe, according to the documentation, that the TRUE
state should disable the delay after the Esc key is pressed.

Does the ESCDELAY environment variable affect the delay? Or is the
delay set internally by NCurses? Or is there something else I'm
missing? Here is the code I'm using to test:

    keypad(stdscr,TRUE);
    notimeout(stdscr,FALSE);
    addstr("Press the Esc key and note the delay:\n");
    refresh();
    wgetnstr(stdscr,input,79);

    notimeout(stdscr,TRUE);
    addstr("\nNow with notimeout TRUE, press Esc:\n");
    refresh();
    wgetnstr(stdscr,input,79);

This is NCurses 5.4 on OS X 10.4.5

Thanks for any suggestions/help you can offer!




reply via email to

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