xref: /freebsd/contrib/netbsd-tests/lib/libcurses/tests/cbreak (revision 62cfcf62f627e5093fb37026a6d8c98e4d2ef04c)
1include start
2# setting noecho stops getch setting cbreak itself so we should need
3# a newline before getch returns, check this works first.
4call OK noecho
5input "abcd\n"
6call 0x61 getch
7noinput
8call 0x62 getch
9noinput
10call 0x63 getch
11noinput
12call 0x64 getch
13noinput
14call 0x0a getch
15# set cbreak, getch should return without needing a newline
16input "ef"
17call OK cbreak
18call 0x65 getch
19