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