home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 5 Edit / 05-Edit.zip / elvis184.zip / doc / versions.ms < prev    next >
Text File  |  1995-05-26  |  21KB  |  483 lines

  1. .Go 14 "VERSIONS"
  2. .PP
  3. \*E currently works under BSD UNIX, AT&T System-V UNIX, SCO XENIX,
  4. Minix, Coherent, MS-DOS, Atari TOS, OS9/68k, VAX/VMS, AmigaDos, and OS/2.
  5. This section of the manual provides special information that applies to each
  6. particular version of \*E.
  7. .PP
  8. For all versions except MS-DOS and VMS,
  9. the file "Makefile.mix" should be copied to "Makefile",
  10. and then edited to select the correct set of options for your system.
  11. There is more information about this embedded in the file itself.
  12. .NH 2
  13. BSD UNIX
  14. .PP
  15. Temporary files are stored in /tmp.
  16. .PP
  17. You should modify /etc/rc so that
  18. the temp files are preserved when the system is rebooted.
  19. Find a line in /etc/rc which reads
  20. .sp
  21. .ti +0.5i
  22. ex4.3preserve /tmp
  23. .LP
  24. or something like that, and append the following line:
  25. .sp
  26. .ti +0.5i
  27. elvprsv /tmp/elv*
  28. .PP
  29. If you do not have permission to modify /etc/rc, don't fret.
  30. The above modification is only needed to allow you to recover your changes
  31. after a system crash.
  32. You can still run \*E without that modification,
  33. and you can still recover your changes when \*E crashes
  34. or when your dialup modem looses the carrier signal, or something like that.
  35. Only a system crash or power failure could hurt you.
  36. .PP
  37. Both \*E and the real Vi
  38. read initialization commands from a file called ".exrc",
  39. but the commands in that file might work on one editor but not the other.
  40. For example, "set keywordprg=man" will work for \*E,
  41. but Vi will complain because it doesn't have a "keywordprg" option.
  42. If the warning messages annoy you, then you can edit the CFLAGS setting
  43. in the Makefile and add -DEXRC=\\".elvisrc\\".
  44. .PP
  45. If you use X windows, you may wish to add "-DCS_LATIN1" to CFLAGS.
  46. This will cause the digraph table and the flipcase option to have default
  47. values that are appropriate for the LATIN-1 character set.
  48. That's the standard character set for X.
  49. .PP
  50. The default mailer used notify users when text is preserver is "mail".
  51. You may wish to change this to "Mail" (with an uppercase 'M').
  52. See the description of "MAILER" in the CFLAGS section of this manual.
  53. .PP
  54. The default keyboard macro time-out value is larger for BSD than it is for
  55. some other systems, because I've had trouble running \*E via rlogin or Xterm.
  56. I guess it takes a while for those keystokes to squirt through the net.
  57. .NH 2
  58. System-V UNIX
  59. .PP
  60. Most SysV UNIX systems use terminfo instead of termcap,
  61. but  the  terminfo  library  doesn't seem to have a standard name.
  62. As shipped, \*E' Makefile.mix  is  configured  with "LIBS=-ltermcap".
  63. You may need to change it to "LIBS=-lterm" or "LIBS=-lterminfo"
  64. or even "LIBS=-lcurses".
  65. .PP
  66. The /etc/rc file (or its equivalent) should be modified as described
  67. for BSD systems, above.
  68. There's a pretty good chance that "make install" will do this for you;
  69. it knows how to create an editor recovery file in the /etc/rc2.d directory,
  70. which is where most modern SysV systems store initialization commands.
  71. You only need to do it manually for older SysV systems.
  72. .PP
  73. The potential trouble with ".exrc" described above for BSD UNIX applies
  74. to System-V UNIX as well.
  75. .PP
  76. The default mailer used notify users when text is preserver is "mail".
  77. You may wish to change this to "mailx".
  78. See the description of "MAILER" in the CFLAGS section of this manual.
  79. .PP
  80. \*E uses control-C as the interrupt key, not Delete.
  81. This was done so that the <Del> key could be used for character deletion.
  82. .NH 2
  83. SCO Xenix
  84. .PP
  85. For Xenix-386, you can use the generic System-V settings.
  86. You may wish to add "-DCS_IBMPC" to CFLAGS, to have the digraph table and
  87. flipcase option start up in a mode that is appropriate for the console.
  88. Also, note that there is a separate group of settings for use with Xenix-286.
  89. It already has "-DCS_IBMPC" in CFLAGS.
  90. .PP
  91. Because Xenix is so similar to System-V, everything I said earlier about
  92. System-V applies to the Xenix version too, except that editor recovery
  93. might belong in a directory called /etc/rc.d/8 instead.
  94. .NH 2
  95. Minix
  96. .PP
  97. There are separate settings in Makefile.mix for Minix-PC and Minix-68k.
  98. The differences between these two are that
  99. the 68k version uses ".o" for the object file extension where
  100. the PC version uses ".s", and
  101. the PC version has some extra flags in CFLAGS to reduce the size of \*E.
  102. The PC version also uses tinytcap (instead of the full termcap)
  103. to make it smaller.
  104. .PP
  105. Minix-PC users should read the CFLAGS section of this manual very carefully.
  106. You have some choices to make...
  107. .PP
  108. The temporary files are stored in /usr/tmp.
  109. The /usr/tmp directory must exist before you run \*E,
  110. and it must be readable & writable by everybody.
  111. We use /usr/tmp instead of /tmp because
  112. after a system crash or power failure,
  113. you can recover the altered version of a file from the temporary file
  114. in /usr/tmp.
  115. If it was stored in /tmp, though, then it would be lost because /tmp is
  116. normally located on the RAM disk.
  117. Also, you'll need a /usr/preserve directory which is readable & writable
  118. by root;
  119. this directory is used to store text files that have been preserved after a
  120. crash.
  121. The "make install" script will create it if necessary.
  122. .PP
  123. \*E uses control-C as the interrupt key, not Delete.
  124. .NH 2
  125. Coherent
  126. .PP
  127. \*E was ported to Coherent by Esa Ahola.
  128. .PP
  129. \*E is too large to run under Coherent unless you eliminate some
  130. features via the CFLAGS setting.
  131. The recommended settings, in Makefile.mix, produce a working version
  132. of \*E which emulates Vi faithfully, but lacks most of the extensions.
  133. You should read the CFLAGS section of this manual carefully.
  134. .PP
  135. You can probably reduce the size of \*E by using tinytcap.c instead of -lterm.
  136. This would allow you to keep most features of \*E,
  137. at the expense of terminal independence.
  138. (Tinytcap.c has ANSI escape sequences hard-coded into it.)
  139. To use tinytcap, just add "tinytcap.o" to the "EXTRA=" line in the Makefile,
  140. and remove "-lterm" from the "LIBS=" line.
  141. .PP
  142. The temporary files are stored in /tmp.
  143. Preserved files are stored in /usr/preserve.
  144. You should modify your /etc/rc file to support file preservation;
  145. add the line ...
  146. .sp
  147.     /usr/bin/elvprsv /tmp/*
  148. .sp
  149.  ... just before the first "/bin/rm" line.
  150. .NH 2
  151. Linux
  152. .PP
  153. The Makefile.mix file has a special section of options for Linux.
  154. There should be no surprises.
  155. Linux is mostly SysV-ish, so the SysV comments above will apply to Linux
  156. as well, except that most Linux systems still have an old-style /etc/rc file.
  157. You should add the command ...
  158. .sp
  159.     /usr/bin/elvprsv /tmp/*
  160. .sp
  161.  ... in there somewhere.
  162. On my SLS 1.02 system, I added it near the end, just before the line that
  163. runs the shell on "/etc/rc.local".
  164. .NH 2
  165. MS-DOS
  166. .PP
  167. \*E was ported to MS-DOS by Guntram Blohm and Martin Patzel.
  168. Willett Kempton added support for the DEC Rainbow.
  169. .PP
  170. Ideally, \*E should be compiled with Microsoft C 5.10 and the standard
  171. Microsoft Make utility,
  172. via the command "make elvis.mak".
  173. This will compile \*E and all related utilities.
  174. .PP
  175. With Microsoft C 6.00, you may have trouble compiling regexp.c.
  176. If so, try compiling it without optimization.
  177. .PP
  178. The "Makefile.mix" file contains a set of suggested settings for compiling
  179. \*E with Turbo-C or Borland C.
  180. (If you have Turbo-C, but not the Make utility,
  181. then you can \fIalmost\fR use the "\*E.prj" file to compile \*E,
  182. but you must explicitly force Turbo-C to compile it with the "medium" memory model.
  183. Most of the related programs [ctags, ref, virec, refont, and wildcard] are
  184. only one file long, so you should have no trouble compiling them.)
  185. The "alias.c" file is meant to be compiled once into an executable named
  186. "ex.exe".
  187. You should then copy "ex.exe" to "vi.exe" and "view.exe".
  188. .PP
  189. \*E stores its temporary files in C:\\tmp.
  190. If this is not satisfactory, then you should edit the CFLAGS line of
  191. your Makefile to change TMPDIR to something else before compiling.
  192. You can also control the name of the temp directory via an environment
  193. variable named TMP or TEMP.
  194. The directory must exist before you can run \*E.
  195. .PP
  196. The TERM environment variable determines how \*E will write to the screen.
  197. It can be set to any one of the following values:
  198. .LD
  199. .ta 1.5i 2.5i
  200.     pcbios    Use BIOS calls on an IBM-PC clone.
  201.     rainbow    Use DEC Rainbow interface.
  202.     ansi    Use ANSI.SYS driver.
  203.     nansi    User faster NANSI.SYS driver.
  204. .DE
  205. .PP
  206. If the TERM variable isn't set, then \*E will automatically select either
  207. the "rainbow" interface (when run on a Rainbow) or "pcbios" (on an IBM clone).
  208. .PP
  209. You may prefer to use NANSI.SYS for speed;
  210. or you may NEED to use ANSI.SYS for a non-clone, such as a lap-top.
  211. If so, you should
  212. install one of these drivers by adding "driver = nansi.sys" (or whatever)
  213. to your CONFIG.SYS file,
  214. and then you should define TERM to be "nansi" (or whatever) by adding
  215. "set TERM=nansi" to your AUTOEXEC.BAT file.
  216. You must then reboot for these changes to take effect.
  217. After that, \*E will notice the "TERM" setting and use the driver.
  218. .PP
  219. Since ".exrc" is not a valid DOS filename,
  220. the name of the initialization file has been changed to "elvis.rc".
  221. \*E will look for an "elvis.rc" file first in your home directory.
  222. If it exists, and contains ":set exrc", then \*E will check for
  223. another "elvis.rc" in the current directory.
  224. By default, the directory where ELVIS.EXE resides is taken to be your
  225. home directory.
  226. You can override this default by setting an environment variable named
  227. "HOME" to the full pathname of your home directory.
  228. To set "HOME", you would typically add the following line to your
  229. AUTOEXEC.BAT file:
  230. .br
  231. .ti +0.5i
  232. set HOME c:\\
  233. .PP
  234. An extra program, called "wildcard", is needed for MS-DOS.
  235. It expands wildcard characters in file names.
  236. If \*E flashes a "Bad command or filename" message when it starts,
  237. then you've probably lost the WILDCARD.EXE program somehow.
  238. .PP
  239. \*E can run under Windows, but you may have trouble with TEMP.
  240. Windows uses an environment variable called TEMP which interferes with
  241. \*E' usage of TEMP;
  242. to work around this, you can simply set an environment variable named
  243. TMP (with no 'E') to the name of \*E' temporary directory.
  244. When TEMP and TMP are both set, \*E uses TMP and ignored TEMP.
  245. .PP
  246. In a ":set" command, the backslash character is used to "escape" the
  247. character that follows it.
  248. To make a backslash be part of a string option's value,
  249. you must enter a double backslash.
  250. For example, to define the directory where temporary files will exist,
  251. you could add ":set dir=C:\\\\tmp" to your ELVIS.RC file.
  252. Just plain ":set dir=C:\\tmp" (with one backslash) \fIwon't work!\fR.
  253. .NH 2
  254. Atari TOS
  255. .PP
  256. \*E was ported to Atari TOS by Guntram Blohm and Martin Patzel.
  257. It is very similar to the MS-DOS version.
  258. It has been tested with the Mark Williams C compiler and also GNU-C.
  259. .PP
  260. The TERM environment variable is ignored;
  261. the ST port always assumes that TERM=vt52.
  262. The SHELL (not COMSPEC!) variable should be set to
  263. the name of a line-oriented shell.
  264. .PP
  265. A simple shell in included with \*E.
  266. Its source is in "shell.c", and the name of the executable is "shell.ttp".
  267. The file "profile.sh" should contain a set of instructions to be executed
  268. when the shell first starts up.
  269. An example of this file is included, but you will almost certainly want to
  270. edit it right away to match your configuration.
  271. (If you already have a command-line shell,
  272. then you'll probably want to continue using it.
  273. The shell that comes with \*E is very limited.)
  274. .PP
  275. Currently, character attributes cannot be displayed on the screen.
  276. .PP
  277. \*E runs under MiNT (a free multi-tasking extension to TOS)
  278. but it can be a CPU hog because of the way that \*E reads from the
  279. keyboard with timeout.
  280. Also, \*E doesn't use any of the special features of MiNT.
  281. I have received a set of patches that optimize \*E for MiNT,
  282. but they arrived too late to integrate into this release.
  283. .NH 2
  284. OS9/68k
  285. .PP
  286. \*E was ported to OS9/68k by Peter Reinig.
  287. .PP
  288. The Makefile is currently configured to install \*E and the related
  289. programs in /dd/usr/cmds
  290. If this this is unacceptable, then you should change the BIN setting
  291. to some other directory.
  292. Similarly, it expects the source code to reside in /dd/usr/src/elvis;
  293. the ODIR setting is used to control this.
  294. .PP
  295. Temporary files are stored in the /dd/tmp directory.
  296. Your /dd/startup file may need to be modified
  297. to prevent it from deleting \*E' temporary files;
  298. make /dd/startup run the \fIelvprsv\fR program before it wipes out /dd/tmp.
  299. .PP
  300. The program in alias.c is linked repeatedly to produce the
  301. "vi", "view", and "input" aliases for \*E.
  302. Sadly, the "ex" alias is impossible to implement under OS9
  303. because the shell has a built-in command by that name.
  304. .PP
  305. For some purposes,
  306. you must give `make' the "-b" option.
  307. Specifically, you need this for "make -b clean" and "make -b install".
  308. .NH 2
  309. VAX/VMS
  310. .PP
  311. John Campbell ported \*E to VAX/VMS.
  312. .PP
  313. A heavily laden VAX can take half an hour to compile \*E.
  314. This is normal.
  315. Don't panic.
  316. .PP
  317. While running, \*E will create temporary files in SYS$SCRATCH.
  318. Enter SHOW LOGICAL SYS$SCRATCH to see what actual directory you are using.
  319. Many sites have SYS$SCRATCH equivalenced to SYS$LOGIN.
  320. The \*E temporary files look like the following on VMS while \*E is running:
  321. .br
  322. .ti 0.75i
  323. ELV_1123A.1;1       ELV_1123A.2;1       SO070202.;1
  324. .PP
  325. Also, filtering commands (like !!dir and !}fmt) should work on VMS.
  326. This assumes, however, that you can create temporary mailboxes and that
  327. your mailbox quota (a sysgen parameter) is at least 256 bytes for a
  328. single write to the mailbox.
  329. This is the default sysgen parameter,
  330. so there should be few people who experience filter problems.
  331. .PP
  332. Additionally, an attempt was made to support the standard terminals on VMS:
  333. "vt52", "vt100", "vt200", "vt300", "vt101", "vt102".
  334. Non-standard terminals could be supported by setting your terminal type to
  335. UNKNOWN (by entering SET TERM/UNKNOWN)
  336. and defining the logical name ELVIS_TERM.
  337. Whatever ELVIS_TERM translates to, however, will have to be included in
  338. tinytcap.c.
  339. Note that the upper/lowercase distinctions are significant,
  340. and that DCL will upshift characters that are not quoted strings, so
  341. enter DEFINE ELVIS_TERM "hp2621a".
  342. As distributed, it would probably not be a good idea to have more than the
  343. standard terminals in tinytcap.c (else it wouldn't be tiny, would it?).
  344. Changes here, of course, would require a recompilation to take effect.
  345. .PP
  346. If you have a version of the "termcap" library and database on your system,
  347. then you may wish to replace tinytcap with the real termcap.
  348. .NH 2
  349. AmigaDOS
  350. .PP
  351. Mike Rieser and Dale Rahn ported \*E to AmigaDOS.
  352. .PP
  353. The port was done using Manx Aztec C version 5.2b.
  354. \*E uses about as much space as it can and still be small code and data.
  355. \*E should also compile under DICE, though there may be a little trouble with
  356. signed versus unsigned chars.
  357. .PP
  358. The port has been done so the same binary will run under both versions of AmigaDOS.
  359. Under AmigaDOS 2.04, \*E supports all the documented features.
  360. It also uses an external program ref to do tag lookup.
  361. So, the accompanying programs: ref and ctags are recommended.
  362. Under AmigaDOS 1.2/1.3 \*E works, buts lacks the more advanced features.
  363. .PP
  364. For the port to AmigaDOS 2.04, we tried to use as many Native AmigaDOS
  365. calls as we could.
  366. This should increase \*E's chances at being compiled with other compilers.
  367. DICE seems to have a different default char type.
  368. You may need to use the UCHAR() macro in tio.c.
  369. To test it, try the :map command; if it looks right, things are cool.
  370. .PP
  371. For the port to AmigaDOS 1.3, we tried to make sure the program was at
  372. least usable.
  373. Many features are missing, most notably running commands in subshells.
  374. Also, what we could get working, we used Aztec functions to support them,
  375. so this part is little more compiler dependent.
  376. .PP
  377. Aztec is compatible with the SAS libcall #pragma.
  378. I personally prefer using the includes that come from Commodore over the ones
  379. supplied with Aztec, but for people with a straight Aztec installation,
  380. I went with the default names for the Aztec pragmas.
  381. .PP
  382. One include you'll need is <sys/types.h>.
  383. It's a common include when porting software just make yourself one.
  384. It's a two line file that saves a lot of hassle especially in the \*E source.
  385. So, make a directory where your includes are located called `sys'
  386. and in a file below that type:
  387. .br
  388. .ti +0.8i
  389. /* sys/types.h */
  390. .br
  391. .ti +0.8i
  392. #include <exec/types.h>
  393. .PP
  394. When setting environment variables (either local or global) for
  395. variables that specify a directory, make sure the variable ends in `:'
  396. or `/'.
  397. This saved from having to change much of the way \*E works.
  398. The default temporary directory (if TEMP and TMP aren't specified) is "T:".
  399. The default if HOME directory (if no HOME environment variable is set) is "S:".
  400. .PP
  401. To avoid conflict with other uses, \*E uses elvis.rc instead of .exrc or
  402. where it looks for macros.
  403. .NH 2
  404. OS/2 2.x
  405. .PP
  406. \*E was ported to OS/2 by Kai Uwe Rommel.
  407. Greg Roelofs fixed some generic bugs and added various tweaks and VIO features
  408. not supported by OS/2's ANSI emulation.
  409. \*E was ported using the emx port of the GNU C compiler ("emx+gcc"); other
  410. OS/2 compilers (including the gcc/2 port) will probably not work due to
  411. their lack of termcap support.
  412. If you use emx 0.8f or earlier, you will need to change the -Zmtd option
  413. to -Zmt in Makefile.mix, as noted in the comment there.
  414. .PP
  415. The port is derived from the MS-DOS port, so most of the MS-DOS comments should
  416. still be valid.
  417. In particular, the default pathnames for the temp directory and preservation
  418. directory are the same, and wildcard.exe is used.  (emx's _wildcard() function
  419. is [optionally] used in most places, but ex.c still calls the "standard"
  420. wildcard() function.)
  421. .PP
  422. Note that the executables are dynamically linked, so you'll need EMX.DLL and
  423. EMXLIBC.DLL somewhere in your LIBPATH.
  424. These are included with executables-only distributions and, of course, with
  425. emx itself.
  426. You'll also need a termcap.dat file in a location pointed at by the TERMCAP
  427. variable; again, one is supplied.
  428. Set the TERM variable equal to one of the listed termcap entries such as
  429. "ansi" or "pcbios".
  430. .PP
  431. Finally, note that the VIO features mentioned above are not enabled by default.
  432. Without them, \*E uses only termcap codes for screen updates and can therefore
  433. be used remotely (e.g., in a telnet session).
  434. If you're working at the OS/2 system console, however, the VIO features can be
  435. enabled via a special \*E variable, "viomode" (abbreviated "vm").
  436. Although it can be used interactively to enable most of the new features
  437. (smooth backscrolling, cursor shape in insert mode, shorter beeps), enabling
  438. both the auto-detection of ANSI mode (plus setting it, if necessary) and the
  439. restoration of screen colors requires the EXINIT variable to be set.
  440. (By the time \*E is running and the interactive command is given, it's too
  441. late for such initializations.)
  442. For example, add "set EXINIT=set viomode" to your config.sys file; this will
  443. take effect at the next OS/2 reboot.
  444. .NH 2
  445. Other Systems
  446. .PP
  447. For SunOS and Solaris 1.x, use the BSD settings;
  448. for Solaris 2.x, use the SysV settings.
  449. Earlier versions of \*E didn't link correctly due to a quirk in Sun's
  450. version of the "make" utility, but this version of \*E has a work-around
  451. for that quirk so you should have no trouble at all.
  452. .PP
  453. For AIX, use the SysV settings in Makefile.mix, with the changes suggested
  454. by comments there.
  455. .PP
  456. For other UNIXoid systems, I suggest you start with the Minix-68k settings
  457. and then grow from that.
  458. Minix is a nice starting point because it is a clone of Version 7 UNIX,
  459. which was the last common ancestor of BSD UNIX and SysV UNIX.
  460. Any operating system which claims any UNIX compatibility whatsoever
  461. will therefore support V7/Minix code.
  462. You may need to fiddle with #include directives or something, though.
  463. Minix-68k is a better starting point than Minix-PC because the PC compiler
  464. has some severe quirks.
  465. .PP
  466. If you're thinking of porting \*E to some non-UNIX system,
  467. I suggest you begin by studying the "INTERNALS" section of this manual.
  468. .NH 2
  469. X Windows Notes
  470. .PP
  471. Normally, you can use the mouse to select text in an xterm window and/or
  472. paste it as though it had been typed into that window.
  473. Elvis changes this behavior; when elvis is running in an xterm,
  474. any mouse click will just move the cursor.
  475. To perform the normal xterm select & paste while elvis is running,
  476. you must hold the <Shift> key when you make the selection or paste it.
  477. .PP
  478. If you resize the window, elvis will notice the change and make any
  479. necessary changes.
  480. (Earlier versions of elvis didn't update the value of the "window" option,
  481. resulting in '@' signs appearing on the screen.
  482. This has now been fixed.)
  483.