xref: /netbsd-src/tests/lib/libcurses/tests/addnwstr (revision ce321bb046b7a850b16aef44adff2afe1041bbfe)
1include start
2# 0x3401 takes 2 columns
3# test multi-column
4wchar WSTR [0x41, 0x42, 0x3401, 0x43, 0x44, 0x45]
5call OK addnwstr $WSTR 4
6call OK refresh
7call2 0 5 getyx STDSCR
8compare addnwstr1.chk
9
10# test special character processing
11wchar CR ["\r", "a", "\r", "b", "c"]
12call OK addnwstr $CR 4
13call OK refresh
14compare addnwstr2.chk
15
16# test wrapping
17call OK move 2 77
18call OK addnwstr $WSTR -1
19call OK refresh
20compare addwstr3.chk
21