# clear_screen

Definition: | clear_screen()
Description: | Clear the screen using the current background color (may be set by bk_color()).
pwa/p2js: | Supported, not that I particularly recommend it. Note that on desktop/Phix the console is separate from any GUI, and invoking clear_screen() therefore has no effect on the GUI, whereas under pwa/p2js both are present in the same browser window, hence it would rudely delete any running GUI without any such courtesy as invoking close routines. Therefore should clear_screen() detect that IupOpen is actually a function rather than undefined, it crashes with "clear_screen() when pGUI detected", that is the version of clear_screen() in p2js.js but not the one in pfileioN.e.
Implementation: | via :%opClrScrn / fclear_screen() in builtins\VM\pfileioN.e (an autoinclude), or as document.body.innerHTML = ""; in p2js.js
See Also: | bk_color