mirror of
https://github.com/opnsense/src.git
synced 2026-04-04 08:55:18 -04:00
22 lines
385 B
Text
22 lines
385 B
Text
|
|
#
|
||
|
|
# 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
|