xref: /netbsd-src/tests/lib/libcurses/tests/halfdelay (revision ccd9df534e375a4366c5b55f23782053c7a98d82)
1include start
2delay 1000
3# input delay 1000 equals to 10 tenths of seconds
4# getch must fail for halfdelay(5) and pass for halfdelay(15)
5input "a"
6call OK halfdelay 15
7call 0x61 getch
8call OK halfdelay 5
9input "a"
10call -1 getch
11
12# leave halfdelay mode using nocbreak
13# setting noecho stops getch setting cbreak itself.
14
15call OK noecho
16call OK nocbreak
17input "a\n"
18call 0x61 getch
19