include start
input "testing\n"
call2 OK "testing" getnstr 10
input "1234567\n"
call2 OK "123" getnstr 4
# try a couple of backspaces, this should erase characters, we have
# embedded a cursor left sequence too but this should not be interpreted
input "abc\010\010def\eODgh\n"
call2 OK "adef" getnstr 5
# turn on keypad so the embedded cursor key will affect the result
call OK keypad STDSCR $TRUE
input "abc\010\010def\eODgh\n"
call2 OK "adeg" getnstr 5
