include window
# test input through unget_wch queue
wchar ACHAR 0x3401
wchar NL "\n"
call OK unget_wch $NL
call OK unget_wch $ACHAR
call OK wmove $win1 2 3
noinput
call2 OK $ACHAR wget_wstr $win1

# test erase and kill character processing,
# enable canonical mode; kill should erase whole line
call OK cbreak
wchar res ["c", "d", "f"]
call OK wmove $win1 3 0
input "ab\025cde\010f\n"
call2 OK $res wget_wstr $win1

# test keypad translations
wchar res ["a", "c", "\e", "O", "D"]
call OK wmove $win1 4 0
input "ab\010c\eOD\n"
call2 OK $res wget_wstr $win1

call OK keypad $win1 $TRUE
wchar res ["a", "b", "d"]
call OK wmove $win1 5 1
input "abc\eODd\n"
call2 OK $res wget_wstr $win1

compare wget_wstr.chk
