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