home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / editor / elvis / environ.doc < prev    next >
Text File  |  1994-01-30  |  3KB  |  133 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. _1_1.  _E_N_V_I_R_O_N_M_E_N_T _V_A_R_I_A_B_L_E_S
  8.  
  9.      Elvis examines several environment  variables  when  it
  10. starts  up.   The  values of these variables are used inter-
  11. nally for a variety of purposes.  You don't need  to  define
  12. all  of  these; on most systems, Elvis only requires TERM to
  13. be defined.  On AmigaDOS, MS-DOS or TOS systems,  even  that
  14. is optional.
  15.  
  16. _T_E_R_M, _T_E_R_M_C_A_P
  17.  
  18.      TERM tells Elvis the name of the termcap entry to  use.
  19. TERMCAP  may contain either the entire termcap entry, or the
  20. full pathname of the termcap file to search through.
  21.  
  22.      If your version of Elvis is using tinytcap  instead  of
  23. the  full  termcap library, then the value of TERMCAP _c_a_n_n_o_t
  24. contain any backslash  escapes  (\E,  \r,  etc.)   or  carat
  25. escapes  (^[, ^M, etc.), because tinytcap doesn't understand
  26. them.  Instead, you should embed the actual control  charac-
  27. ter into the string.
  28.  
  29. _T_M_P, _T_E_M_P
  30.  
  31.      These only work for AmigaDOS,  MS-DOS  and  Atari  TOS.
  32. Either of these variables may be used to set the "directory"
  33. option, which controls where temporary files are stored.  If
  34. you define them both, then TMP is used, and TEMP is ignored.
  35.  
  36. _L_I_N_E_S, _C_O_L_U_M_N_S
  37.  
  38.      The termcap entry for your terminal should specify  the
  39. size of your screen.  If you're using a windowing interface,
  40. then there is an ioctl() call which will provide the size of
  41. the  window;  the ioctl() values will override the values in
  42. the termcap entry.  The LINES and COLUMNS environment  vari-
  43. ables  (if  defined)  will override either of these sources.
  44. They, in turn, can be overridden by a ":set" command.
  45.  
  46.      Normally, the LINES  and  COLUMNS  variables  shouldn't
  47. need to be defined.
  48.  
  49. _E_X_I_N_I_T
  50.  
  51.      This variable's value may contain one  or  more  colon-
  52. mode  commands,  which  will  be  executed  after all of the
  53. ".exrc" files but before interactive editing begins.
  54.  
  55.      To put  more  than  one  command  in  EXINIT,  you  can
  56. separate the commands with either a newline or a '|' charac-
  57. ter.
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.                        June 13, 1992
  65.  
  66.  
  67.  
  68.  
  69.  
  70. 11-2               ENVIRONMENT VARIABLES                11-2
  71.  
  72.  
  73. _S_H_E_L_L, _C_O_M_S_P_E_C
  74.  
  75.      You can use COMSPEC in MS-DOS, or SHELL  in  any  other
  76. system,  to specify which shell should be used for executing
  77. commands and expanding wildcards.
  78.  
  79. _H_O_M_E
  80.  
  81.      This variable should give the  full  pathname  of  your
  82. home  directory.   Elvis needs to know the name of your home
  83. directory so it can locate the ".exrc" file there.
  84.  
  85. _T_A_G_P_A_T_H
  86.  
  87.      This variable is used by the "ref"  program.   It  con-
  88. tains  a  list  of directories that might contain a relevent
  89. "tags" file.  Under AmigaDOS, MS-DOS or Atari TOS, the names
  90. of  the directories should be separated by semicolons (";").
  91. Under other operating systems, the names should be separated
  92. by colons (":").
  93.  
  94.      If you don't define TAGPATH,  then  "ref"  will  use  a
  95. default  list which includes the current directory and a few
  96. other likely places.  See the definition  of  DEFTAGPATH  at
  97. the start of ref.c for an accurate list.
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.                        June 13, 1992
  131.  
  132.  
  133.