opnsense-src/contrib/netbsd-tests/lib/libcurses/tests/cbreak
Enji Cooper 57718be8fa Import the NetBSD test suite from ^/vendor/NetBSD/tests/09.30.2014_20.45 ,
minus the vendor Makefiles

Provide directions for how to bootstrap the vendor sources in
FREEBSD-upgrade

MFC after 2 weeks
Discussed with: rpaulo
Sponsored by: EMC / Isilon Storage Division
2014-10-02 23:26:49 +00:00

18 lines
385 B
Text

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