bk_color
| Definition: | bk_color(integer i) |
| Description: | Set the console window background color to one of the 16 standard colors. Any new characters that you print will have the new background color. |
| pwa/p2js: | Supported, not that I particularly recommend it. Note that as per the comments in text_color() there may be some differences between running pwa/p2js on Windows or Linux. |
| Comments: | The same 16 standard colors as text_color() may be used.
To restore the original background color when your program finishes, you must call e.g. bk_color(BLACK). |
| Example: |
bk_color(BLACK) For use in a complete application, see demo\color.exw or demo\rosetta\Coloured_text.exw |
| Implementation: | via :%opBkClr / set_console_color() in builtins\VM\pfileioN.e (an autoinclude), or via a <span> in p2js.js |
| See Also: | text_color |