⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 color.txt

📁 使用于OS/2下的小工具的C源程序,使用于OS/2下的小工具的C源程序
💻 TXT
字号:
                                             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

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -