include start
delay 1000
# input delay 1000 equals to 10 tenths of seconds
# getch must fail for halfdelay(5) and pass for halfdelay(15)
input "a"
call OK halfdelay 15
call 0x61 getch
call OK halfdelay 5
input "a"
call -1 getch

# leave halfdelay mode using nocbreak
# setting noecho stops getch setting cbreak itself.

call OK noecho
call OK nocbreak
input "a\n"
call 0x61 getch
