Memory screens are usually cleared by a call to wn_clr(). To clear a window, wn_clr() writes to the window with its fill character and window attribute. Thus, the memory screen is cleared with the window attribute and filled with the fill character.
Alternatively, you can use the memory screen clear function, ms_clr(), to clear the contents of the memory screen with its own clear attribute. The call is as follows:
|
The video attribute that is used to clear the memory screen is set to the attribute specified when defining or creating the memory screen. To change the attribute used for clearing the memory screen, use the memory screen clear attribute function, ms_clratt():
|
||
|
|
|
|
|
|
All subsequent calls to ms_clr() will use this attribute.
Note: ms_clr() uses the system logical attribute table. This may cause problems if you are working with Designer windows, which normally use the logical attribute table in the Designer library, or if you have attached your own logical attribute table to the window. To clear the memory screen using the logical attribute table associated with the window or the Designer library, you should use wn_clr().