The clear window statement clears a window or scrolling window.
clear window window_name
• window_name – The name of the window to be cleared.
Clearing a window removes the data currently in each field in the window. Clearing a scrolling window removes all data currently in the scrolling window, and removes the add-line and all fields in the scrolling window as well.
When a window is cleared, the change flag for that window is cleared as well. Consequently, the changed() function will return false immediately after a window has been cleared.