From: nox@jelal.north.de (Juergen Lock)
Newsgroups: comp.sys.atari.st,de.comp.sys.st
Subject: elvis 1.6 `beta' for TOS/MiNT, patched one bug...
Summary: d} etc at EOF doesn't crash elvis anymore
Keywords: elvis editor vi zoo MiNT patch ftp.uni-paderborn.de atari.archive
Date: 3 Sep 92 22:44:54 GMT
Article-I.D.: jelal.2376.09.92
Organization: home

i received a bug report and patch for elvis, and because that one can
be quite fatal especially on poor ataris without memory protection i
decided to make a new archive.  (well it never happened to me but... :-)

 this patched elvis 1.6 for the atari is now on ftp.uni-paderborn.de
[131.234.2.32] in either pub/atari/incoming/elv16beta2.zoo or
pub/atari/MiNT/mgnustuff and on atari.archive.umich.edu [141.211.164.8]
(is that ip address still right?) in atari/new/elv16beta2.zoo. (tnx to
warwick for uploading it there...the connection from germany is something
around the speed of a teletype. :-( )  (btw, wowbagger...uni-bremen.de
had `No space on device' yesterday but local uni-bremen users can get it
on alf in ~d09c/pub/atari.)

 or if you already have the first version you can also apply the patch
and `make':  (there even are some warnings so you can try elvis' errlist
feature: :-) just do the :make in elvis and when its finished hit *...)

*** vi.c~	Wed May 13 18:30:00 1992
--- vi.c	Wed Sep  2 00:48:56 1992
***************
*** 669,674 ****
--- 669,687 ----
  				break;
  			}
  
+ 			/* CHANGE: adjust tcurs again. It may be two lines
+ 			 * beyond EOF here, since it could have been beyond EOF
+ 			 * before the adjustment above already. I might be
+ 			 * better to avoid the adjustment above if tcurs was
+ 			 * already at EOF, but I am not sure, and adjutsing
+ 			 * again seems more general.	--hp
+ 			 *
+ 			 * ...but not adjmove because that also `corrects'
+ 			 * the column.  -nox
+ 			 */
+ 			if (markline(tcurs) > nlines)
+ 				tcurs = MARK_EOF;
+ 
  			/* run the function */
  			tcurs = (*vikeys[prevkey].func)(range, tcurs);
  			if (mode == MODE_VI)

 ...and the rest of this message is a repeat from my original announcement:

Newsgroups: comp.sys.atari.st
Subject: elvis 1.6 `beta' for TOS/MiNT

[...]

 note this is *not* an official release, so don't blame steve if
something goes wrong.  but i am intrested in your comments of course...
(i use it now for about 3 months and apart from one rare redraw problem
that was also in earlier versions i have fixed only 1 bug since then.
so it is quite stable...)

 here comes the readme...

------------snip-----
From: Juergen Lock <nox@jelal.north.de>
Subject: elvis 1.6 for MiNT/TOS -- readme

[^^^^ so you can easily reply]

due to popular demand :-) and because its still some time until this will
appear in an official release:  here is the current state of elvis on
MiNT/TOS.  features:

0. this is an *inofficial* version.  even the original 1.6 src it is
based on you won't see posted somewhere... next will probably be elvis
1.7 appearing in comp.sources.reviewed. (but still without this MiNT
stuff built in.)  so if you find problems and bugs don't bother steve
with it (yet), they're probably mine anyway. :-)

1. runs fine on both MiNT and TOS, but needs MiNT libraries to compile
(and also probably gcc).  i have left the #if TOS stuff in (my patches
use #if MINT) but you should use that only as a last resort. (the MiNT
version runs better even under TOS.)

2. behaves itself under MiNT.  that includes stuff like not busy-wait on
the terminal, use pipes instead of tempfiles etc...  (looks at the __mint
variable)

3. and of course shell escapes etc work like you would expect of a vi.
:r !ls -l ...   !Gtr -d '\015' (but see 6. :-)

4. uses -ltermcap.  (that one was easy...)

5. uses the `special key' mapping of the messdos version (see docs)
and also maps the shifted cursor/insrt/home keys wich would otherwise
give digits.  some of the keys can also be defined in the termcap entry,
if that is found a default mapping for the others is used.

6. new options: crlf (read/write \r\n, can be changed anytime) and
stbios (screen io thru BIOS, default on TOS, off with MiNT).

7...and varios fixes and other thigs i have forgot.

 here is the termcap entry i use on the console...

at|st|atari st:\
    :ti=\Ev\Ee:am:te=\Ev\Ee:\
    :al=\EL:bs:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :co#80:\
    :dl=\EM:do=\EB:ho=\EH:ve=\Ee:vi=\Ef:\
    :li#25:se=\Eq:so=\Ep:up=\EA:nd=\EC:\
    :us=\Er:ue=\Eu:md=\E(:me=\E):\
    :ms:pt:\
    :kl=#K:kr=#M:ku=#H:kd=#P:\
    :kI=#R:kh=#G:kH=#O:kP=#I:kN=#Q:\
    :k0=#D:k1=#;:k2=#<:k3=#=:\
    :k4=#>:k5=#?:k6=#@:k7=#A:k8=#B:k9=#C:\
    :ve=#blink:vs=#noblink:\
    :cQ=#blink:cV=#noblink:

 ...and this one for toswin. (uses bold for reverse and has the keys
added, otherwise its unchanged)

st52|toswin window mgr:\
	al=\EL:am:bl=^G:bs:cd=\EJ:ce=\EK:cl=\EE:cm=\EY%+ %+ :\
	co#80:dc=\Ea:dl=\EM:do=\EB:ei=\Ei:eo:ho=\EH:ic=:im=\Eh:it#8:\
	le=^H:li#25:md=\EyA:me=\Ez_:mh=\EzB:mi:mr=\Ep:ms:nd=\EC:\
	rc=\Ek:rs=\Ez_\Eb@\EcA:sc=\Ej:se=\Ez\01:sf=^J:sr=\EI:so=\Ey\01:\
	ta=^I:ti=\Eq\Ev\Ee:ue=\EzH:us=\EyH:up=\EA:ve=\Ee:vi=\Ef:\
    :kl=#K:kr=#M:ku=#H:kd=#P:\
    :kI=#R:kh=#G:kH=#O:kP=#I:kN=#Q:\
    :k0=#D:k1=#;:k2=#<:k3=#=:\
    :k4=#>:k5=#?:k6=#@:k7=#A:k8=#B:k9=#C:

 ok, have fun...
	Juergen
-- 
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
								...ohne Gewehr