After you have defined a memory file and put text into it, you can display the memory file within a window. First you must define the window you want to display the memory file in and set the window to display the memory file. By making a call to a browse function, you pass control to the user to browse through the memory file.
By default, the first row (row 0) in the memory file is displayed in the first working row of the window. If the contents of memory file are larger than what can be displayed in the window, the user can use the cursor pad keys to scroll horizontally and vertically through the memory file.
The user can leave the memory file by pressing the Exit key or Quit key. These keys are initially assigned as KEY_F10 and KEY_ESC. You can change the key assignments for these functions and for the scrolling functions.
Windows that are associated with memory files display the memory file text
A window with a memory file displays the contents of the memory file. The memory file replaces the buffer normally associated with a window. To change the information displayed in the window, you must modify the memory file itself and then flush these changes to the screen. You cannot change the window contents or write to a window that contains a memory file using any of the window write functions, such as v_st() or v_stattpl().