home *** CD-ROM | disk | FTP | other *** search
- COLOR [DUAL MODE]
-
- NAME COLOR - set the colors on the display
-
-
- SYNTAX
-
- color [prefix]basiccolor on [prefix]basiccolor
- where
- prefix = LIGHT_ | DARK_
- basiccolor =
- [BLACK|RED|GREEN|YELLOW|BLUE|MAGENTA|CYAN|WHITE|DEFA
- ULT]
-
- USAGE
-
- Color is used to set the foreground and background color
- of a session. It affects only the session, where it is
- run. If you want to set the colors in all sessions, you
- must create a command file, where the color-command with
- desired parameters is run and then you must modify your
- config.sys. If you set as the last parameter of your
- protshell-line the following " /K cmd-file", OS/2 will
- run the cmd-file every time you start a new session. Note
- that starting an OS/2 Window does not start a new
- session.
-
- Color uses Vio-calls except in OS/2 Window, where the
- call used for changing colors does not work. In OS/2
- Window color uses ANSI-escape sequences, which limit its
- capabilities to the basic colors. E.g. RED is supported,
- but not LIGHT_RED or DARK_RED.
-
- Color uses ANSI escape sequences. If the ANSI sequences
- are off, color sets ANSI on for the duration of the
- program and restores the original situation at the end of
- the program. OS/2 seems to work in a random fashion in
- this kind of situations. Sometimes the colors change
- sometimes not. The color sets the current cursor position
- to the bottom of the screen, because with my version
- (1.21) the ANSI- sequences worked every time, when the
- cursor was at the bottom of the screen. Still CLS-command
- seems to reset all color to their default value, if ANSI
- is off.
-
- SEE ALSO
- clear, normal
-