Annotation of q_a/samples/consolec/readme.txt, revision 1.1.1.1

1.1       root        1:  Sample: Demonstration of Setting Console Text Color
                      2: Attributes
                      3: 
                      4: Summary:
                      5: 
                      6: The CONSOLEC sample illustrates the use of the
                      7: SetConsoleTextAttribute and GetConsoleScreenBufferInfo
                      8: functions to set the console text color attributes.
                      9: 
                     10: More Information:
                     11: 
                     12: This sample also functions as a console window text color
                     13: setting utility.  The command syntax for the utility is as
                     14: follows:
                     15: 
                     16:      COLOR FOREGROUND [BACKGROUND]
                     17: 
                     18: where FOREGROUND and BACKGROUND are the new text color
                     19: selections for the current console.  If the utility is
                     20: invoked without any options, the utilities syntax and a
                     21: table of the possible color choices is displayed.  The
                     22: BACKGROUND selection is optional and thus the FOREGROUND
                     23: text color may be soley changed.
                     24: 
                     25: Possible colors are: BLACK, BLUE, GREEN, CYAN, RED, MAGENTA,
                     26: YELLOW and WHITE.  Each of these can be selected as the
                     27: FOREGROUND or the BACKGROUND color.  Selection of the same
                     28: color for both the FOREGROUND and the BACKGROUND is not
                     29: permitted.  The color options are not case sensitive and
                     30: only the first unique characters are necessary to select the
                     31: color.  For example:
                     32: 
                     33:      COLOR BLU W
                     34: 
                     35: will select BLUE on WHITE text color attributes.
                     36: 
                     37: The text color attribute changes will only affect new
                     38: console output.  Thus, text in the console buffer before the
                     39: utility is invoked will retain their original color
                     40: attributes.
                     41: 
                     42: 
                     43: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.