xref: /netbsd-src/tests/lib/libcurses/tests/leaveok (revision ce321bb046b7a850b16aef44adff2afe1041bbfe)
1*ce321bb0Sblymninclude window
2*ce321bb0Sblymn
3*ce321bb0Sblymncall OK waddstr $win1 "abcd"
4*ce321bb0Sblymncall OK wrefresh $win1
5*ce321bb0Sblymncompare leaveok.chk
6*ce321bb0Sblymn
7*ce321bb0Sblymn# as leaveok for stdscr is false, the cursor is not moved to home on refresh
8*ce321bb0Sblymncall $FALSE is_leaveok STDSCR
9*ce321bb0Sblymncall OK leaveok STDSCR $TRUE
10*ce321bb0Sblymncall $TRUE is_leaveok STDSCR
11*ce321bb0Sblymncall OK refresh
12*ce321bb0Sblymncall OK refresh
13*ce321bb0Sblymncompare /dev/null
14*ce321bb0Sblymn
15*ce321bb0Sblymn# now the cursor would be moved to home as leaveok is false for stdscr
16*ce321bb0Sblymncall OK leaveok STDSCR $FALSE
17*ce321bb0Sblymncall $FALSE is_leaveok STDSCR
18*ce321bb0Sblymncall OK refresh
19*ce321bb0Sblymncompare home.chk
20