summaryrefslogtreecommitdiffstats
path: root/contrib/netbsd-tests/lib/libcurses/tests/timeout
blob: 1adf057321da708295cb599783dd2edb8c7bb122 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# Validate the timeout works.
#
include start
delay 2000
input "a"
call 97 getch
call OK timeout 100
input "b"
# since delay is in effect and we set timeout the following getch should
# return ERR not the character b.
call -1 getch
# drain input....
call OK drain
call OK timeout -1
call OK keypad STDSCR 1
delay 0
input "\eOA"
call $KEY_UP getch
call OK refresh
compare timeout.chk
OpenPOWER on IntegriCloud