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