include window call OK waddstr $win1 "abcd" call OK wrefresh $win1 compare leaveok.chk # as leaveok for stdscr is false, the cursor is not moved to home on refresh call $FALSE is_leaveok STDSCR call OK leaveok STDSCR $TRUE call $TRUE is_leaveok STDSCR call OK refresh call OK refresh compare /dev/null # now the cursor would be moved to home as leaveok is false for stdscr call OK leaveok STDSCR $FALSE call $FALSE is_leaveok STDSCR call OK refresh compare home.chk