1272343Sngieinclude start 2272343Sngie# setting noecho stops getch setting cbreak itself so we should need 3272343Sngie# a newline before getch returns, check this works first. 4272343Sngiecall OK noecho 5272343Sngieinput "abcd\n" 6272343Sngiecall 0x61 getch 7272343Sngienoinput 8272343Sngiecall 0x62 getch 9272343Sngienoinput 10272343Sngiecall 0x63 getch 11272343Sngienoinput 12272343Sngiecall 0x64 getch 13272343Sngienoinput 14272343Sngiecall 0x0a getch 15272343Sngie# set cbreak, getch should return without needing a newline 16272343Sngieinput "ef" 17272343Sngiecall OK cbreak 18272343Sngiecall 0x65 getch 19