home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume13 / vn.jan.88 / part05 / config.h next >
Encoding:
C/C++ Source or Header  |  1988-01-30  |  3.9 KB  |  99 lines

  1. /*
  2. ** vn news reader.
  3. **
  4. ** config.h - system configuration parameters
  5. **
  6. ** see copyright disclaimer / history in vn.c source file
  7. */
  8.  
  9. #define DEF_ED "/usr/ucb/vi"    /* editor to use if no EDITOR variable */
  10. #define DEF_PS1 "$ "        /* ! command prompt if no PS1 */
  11. #define DEF_SAVE ""        /* save file */
  12.  
  13. #define DEF_PRINT "/usr/ucb/lpr"        /* print command */
  14.  
  15. #define DEF_CCFILE "author_copy"
  16. #define DEF_KEYXLN ".vnkey"
  17.  
  18. /*
  19. ** this is the "pre-typed" string the user will be presented with
  20. ** in answer to the "update" question following the QUIT command.
  21. ** Set to "" if you don't like it answering "yes" for you, or "y"
  22. ** if you only want to have to erase one character to say "no", etc.
  23. */
  24. #define QUIT_ANSWER "yes"
  25.  
  26. /*
  27. ** default terminal assumed if TERM variable is unset.  Since TERM has to
  28. ** be set for most UNIX tools, you probably want to make this something
  29. ** which will cause failure, unless EVERYBODY has the same kind of terminal
  30. ** or you don't really use a standard UNIX environment.
  31. */
  32. #define DEF_TERM "<unspecified TERM variable>"
  33.  
  34. /*
  35. ** foreground flag for messages.  applies only if JOBCONTROL undefined
  36. ** (SYS V). set to 1 to see newsgroup messages, etc. during reading phase,
  37. ** 0 for "silent" operation - be warned that this may suppress some
  38. ** non-fatal diagnostic messages - find all references to fgprintf to
  39. ** see what is suppressed.
  40. */
  41. #define NOJOB_FG 1
  42.  
  43. /*
  44. ** arrow key treatment.  If PAGEARROW is defined, right and left arrow
  45. ** keys will be synonyms for <return> (next-page) and <backspace> (previous).
  46. ** Otherwise, the right arrow will function as down, and the left as up.
  47. ** Made configurable because while there is no lateral motion on the screen
  48. ** to associate with the right and left arrows, you might not like them
  49. ** changing pages on you.
  50. */
  51. #define PAGEARROW
  52.  
  53. /*
  54. ** if USEVS is defined, terminal initialization / exit for vn will include the
  55. ** "vs"/"ve" pair as well as "ti"/"te".  This doesn't matter on a lot of
  56. ** terminals, but may make vn display behaviour closer to "vi" since vs/ve
  57. ** is vi's "visual mode" sequence.  For instance, I believe the commonly
  58. ** used definitions for these strings on multi-page concepts allows the
  59. ** program to run in the first page of the terminal, preserving the more
  60. ** recent part of your session on exit
  61. **
  62. ** #define USEVS
  63. */
  64.  
  65. /*
  66. ** temp file name template for mktemp().  Used in tmpnam.c, does not apply
  67. ** if you use a system library tmpnam().   BE CAREFUL - VNTEMPNAME MUST
  68. ** contain a string of 6 X's for mktemp() (actually, a place where 6 X's
  69. ** are intended to go).  TMP_XOFFSET absolutely MUST point to the first of
  70. ** the X's.  Yes, writing into a literal string is sloppy.  To the best of
  71. ** my knowledge, tmpnam.c is the only place you'll find vn code doing it.
  72. ** We make this configurable in case you want temp files somewhere else.
  73. */
  74. #define VNTEMPNAME "/usr/tmp/vnXXXXXX"
  75. #define TMP_XOFFSET 11
  76.  
  77. /*
  78. ** VNLOGFILE and VNSTATFILE.  If these files EXIST, the corresponding data
  79. ** collection will be turned on.  If they don't it will be turned off.
  80. ** To turn it back on again, create the files empty.  Garbage in VNLOGFILE
  81. ** won't hurt collection but VNSTATFILE requires very strict syntax, so
  82. ** make sure its always an empty file or EXACTLY the right syntax.  See stat.c
  83. **
  84. ** VNLOGFILE logs user sessions.  VNSTATFILE keeps a running breakdown
  85. ** of newsgroup activity.  I add these with some hesitancy, as I find
  86. ** use of things like this for Gestapo-like purposes repugnant in the
  87. ** extreme.  However, they can also be useful for system tuning purposes
  88. ** such as verifying what newsgroups are being read, and when load on
  89. ** the system due to newsreading is occurring.
  90. **
  91. ** If VNLOGFILE and VNSTATFILE are NOT DEFINED, the code for doing logging
  92. ** and statistical collection will not be compiled in, saving some overhead,
  93. ** and avoiding calls to system functions like ctime() and time() which may
  94. ** have system dependent quirks.
  95. **
  96. #define VNLOGFILE "/usr/rti/fe/bobm/vn.log"
  97. #define VNSTATFILE "/usr/rti/fe/bobm/vn.stat"
  98. */
  99.