#include <curses.h> int notimeout (WINDOW *win, bool bf); void timeout (int delay); void wtimeout (WINDOW *win, int delay);
The notimeout subroutine specifies whether Timeout Mode or No Timeout Mode is in effect for the screen associated with the specified window. If bf is TRUE, this screen is set to No Timeout Mode. If bf is FALSE, this screen is set to Timeout Mode. The initial state is FALSE.
The timeout and wtimeout subroutines set blocking or non-blocking read for the current or specified window based on the value of delay:
*win | |
bf |
Upon successful completion, the notimeout subroutine returns OK. Otherwise, it returns ERR.
The timeout and wtimeout subroutines do not return a value.
To set the flag so that the wgetch subroutine does not set the timer when getting characters from the my_win window, use:
WINDOW *my_win; notimeout(my_win, TRUE);
This subroutine is part of Base Operating System (BOS) Runtime.
The getch, halfdelay, nodelay, and notimeout subroutines.
Curses Overview for Programming in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
List of Curses Subroutines in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Manipulating Characters with Curses in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.
Getting Characters in AIX Version 4.3 General Programming Concepts: Writing and Debugging Programs.