home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / jed098-4.zip / JED / DOC / COLOR.TXT < prev    next >
Text File  |  1997-02-01  |  2KB  |  46 lines

  1. This is a short note explaining how to use JED with a color terminal.  This
  2. only applies to Unix and VMS spplies to Unix and VMS systems.  This is
  3. particularly relavant if you want to exploit JED's ability to do color
  4. syntax highlighting on a character based terminal.
  5.  
  6.   *Note: If you use MS-Kermit as a terminal emulator, you will need
  7.      to tell it what foreground/background colors you want via
  8.      the `set term color' function.  For example, if you choose
  9.      back on white as the `normal' color, put `set term color
  10.      30 47' in your MSKermit.ini file.  This same comment
  11.      applies to other color terminals which emulate this flawed
  12.      color model.
  13.  
  14. To use JED with a color terminal, it is necessary that the terminal
  15. understand ANSI color escape sequences.  If so, then it is possble to set
  16. up JED to use different foreground and background colors for the modeline,
  17. region highlighting, syntax highlighting, etc...
  18.  
  19. To turn on ANSI color support, set the variable `USE_ANSI_COLORS' to a
  20. non-zero value.  If set to zero, the support is turned off. The colors may
  21. be specified using the set_color function as illustrated in jed.rc.  They
  22. only become active if USE_ANSI_COLORS is non-zero.
  23.  
  24. Unfortunately, few termcaps provide information regarding whether the
  25. terminal is a color one or not. To interactively set USE_ANSI_COLORS, simply
  26. press `Ctrl-X ESC' and enter
  27.  
  28.      USE_ANSI_COLORS = 1
  29.      
  30. at the `S-Lang>' prompt.  
  31.  
  32. This variable is automatically set to a non-zero value by jed if
  33. environment variable COLORTERM exists.
  34.  
  35. Finally, you could simply put:
  36.  
  37.   define term_use_colors () { USE_ANSI_COLORS = 1; }
  38.   
  39. in your jed.rc (.jedrc) and define (alias) jed to be:
  40.  
  41.   alias colorjed 'jed -f term_use_colors'
  42.  
  43.  
  44.   
  45.  
  46.