include window input "test\n" call2 OK "test" wgetnstr $win1 10 input "12345\n" call2 OK "123" wgetnstr $win1 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" wgetnstr $win1 5 # turn on keypad so the embedded cursor key will affect the result call OK keypad $win1 $TRUE input "abc\010\010def\eODgh\n" call2 OK "adeg" wgetnstr $win1 5