]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - contrib/netbsd-tests/lib/libcurses/tests/cbreak
MFC r272343,r272458,r272890,r272891,r272901,r272902,r272903,r272905,r272908,r272909...
[FreeBSD/stable/10.git] / contrib / netbsd-tests / lib / libcurses / tests / cbreak
1 include start
2 # setting noecho stops getch setting cbreak itself so we should need
3 # a newline before getch returns, check this works first.
4 call OK noecho
5 input "abcd\n"
6 call 0x61 getch
7 noinput
8 call 0x62 getch
9 noinput
10 call 0x63 getch
11 noinput
12 call 0x64 getch
13 noinput
14 call 0x0a getch
15 # set cbreak, getch should return without needing a newline
16 input "ef"
17 call OK cbreak
18 call 0x65 getch