cbreak revision 1.1
11.1Sblymninclude start
21.1Sblymn# setting noecho stops getch setting cbreak itself so we should need
31.1Sblymn# a newline before getch returns, check this works first.
41.1Sblymncall OK noecho
51.1Sblymninput "abcd\n"
61.1Sblymncall 0x61 getch
71.1Sblymnnoinput
81.1Sblymncall 0x62 getch
91.1Sblymnnoinput
101.1Sblymncall 0x63 getch
111.1Sblymnnoinput
121.1Sblymncall 0x64 getch
131.1Sblymnnoinput
141.1Sblymncall 0x0a getch
151.1Sblymn# set cbreak, getch should return without needing a newline
161.1Sblymninput "ef"
171.1Sblymncall OK cbreak
181.1Sblymncall 0x65 getch
19