1include start 2input "testing\n" 3call2 OK "testing" mvgetnstr 2 1 10 4compare mvgetnstr1.chk 5input "1234567\n" 6call2 OK "123" mvgetnstr 3 2 4 7compare mvgetnstr2.chk 8# try a couple of backspaces, this should erase characters, we have 9# embedded a cursor left sequence too but this should not be interpreted 10input "abc\010\010def\eODgh\n" 11call2 OK "adef" mvgetnstr 4 1 5 12compare mvgetnstr3.chk 13# turn on keypad so the embedded cursor key will affect the result 14call OK keypad STDSCR $TRUE 15input "abc\010\010def\eODgh\n" 16call2 OK "adeg" mvgetnstr 2 2 5 17compare mvgetnstr4.chk 18