1include window 2 3call OK waddstr $win1 "abcd" 4call OK wrefresh $win1 5compare leaveok.chk 6 7# as leaveok for stdscr is false, the cursor is not moved to home on refresh 8call $FALSE is_leaveok STDSCR 9call OK leaveok STDSCR $TRUE 10call $TRUE is_leaveok STDSCR 11call OK refresh 12call OK refresh 13compare /dev/null 14 15# now the cursor would be moved to home as leaveok is false for stdscr 16call OK leaveok STDSCR $FALSE 17call $FALSE is_leaveok STDSCR 18call OK refresh 19compare home.chk 20