Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Force 4.0 Reference - __doscolor dos color attribute http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 __doscolor          DOS color attribute
------------------------------------------------------------------------------
 Declaration
   color.hdr

 Syntax
   byte __doscolor

 Default
   Not initialized.

 Description
   The __doscolor system variable holds the screen color attribute
   in effect when the application is started up. The getdoscolor() function
   retrieves the value of __doscolor.

 Example
   #define EXAMPLE_SCREEN
   #include example.hdr

   proc Test_doscolor
   __syscolor[ CLR_STD ] := RED_WHITE     // change screen attributes
   clear
   wait
   __syscolor[ CLR_STD ] := __doscolor    // restore original color
   clear
   endproc

   proc main
   Test_doscolor()
   endproc

See Also: getdoscolor()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson