home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / hcshdemo.zip / csh-os2.zip / SAMPLES / COLORS.CSH < prev    next >
Text File  |  1993-09-28  |  3KB  |  55 lines

  1. #    Customize the screen colors.
  2. #    Copyright (c) 1991 by Hamilton Laboratories.  All rights reserved.
  3.  
  4. #    This script shows you how to customize the screen colors used by
  5. #    Hamilton C shell and its utilities.  You might just use a script like
  6. #    this for changing your colors, perhaps calling it from your login.csh
  7. #    or you might embed these color settings directly into your login.csh
  8. #    or (after rewriting them as SET statements) into your config.sys.
  9.  
  10. #    These are the environmental variables controlling screen colors:
  11.  
  12. #        Name                Use                                                Default
  13.  
  14. #        ADDITIONS        Lines added found by diff.                    Bright Green
  15. #        COLORS            Normal screen colors                            White on Black
  16. #        DELETIONS        Lines deleted found by diff.                Bright Red
  17. #        DIRECTORIES        Directories listed by ls.                    Bright
  18. #        DUPLICATES        When filename completion matches            Green
  19. #                            more than one name.
  20. #        FOREIGNFILES    Filetypes that have no counterpart        Bright Red
  21. #                            on OS/2.
  22. #        HIGHLIGHT        Current disk or directory.                    Bright
  23. #        MATCHFAIL        When filename or command completion        Bright Red
  24. #                            doesn't match anything.
  25. #        MOREEOF            End or Top of File in more.                Green
  26. #        MOREERROR        Unrecognizable command to more.            Bright Yellow
  27. #        MOREFILLIN        User response to more prompt.                White
  28. #        MOREPROMPT        Prompt line in more.                            Green
  29. #        MORETOPMEM        Top of Memory message from more.            Bright Yellow
  30. #        SYSTEMDIRS      Directories with the System bit on.        Bright Green
  31. #        SYSTEMFILES        Files with the System bit on.                Green
  32.  
  33. #    The colors available in the C shell are black, red, green, yellow, blue,
  34. #    magenta (or blue red), cyan (or blue green) and white.  Foreground colors
  35. #    may also be bright, dim, blink or reverse.  The keyword "on" introduces
  36. #    background colors.  All the names of the colors along with the keywords
  37. #    bright, dim, blink, reverse and on may be in upper, lower or mixed case.
  38. #    The names of the environmental variables must be all in upper case.
  39.  
  40. #    (Blink causes true blinking only full-screen; in a text window, it
  41. #    just makes the background brighter.)
  42.  
  43. #     If a foreground or background color is left unspecified, that plane
  44. #    is considered transparent and inherits the color underneath it.
  45.  
  46. #    Here is a sample color scheme that's a little more colorful than the
  47. #    normal defaults:
  48.  
  49. setenv    COLORS            =    white on blue
  50. setenv    DELETIONS        =    bright white on red
  51. setenv    ADDITIONS        =    bright white on green
  52. setenv    MOREPROMPT        =    red on white
  53. setenv    MOREFILLIN        =    black
  54. setenv    MOREERROR        =    bright white on red
  55.