[comp.terminals] Emacs and Volker Craig terminal...

cnbr17@vaxa.strath.ac.uk (12/04/90)

Hi all,
	I occasionally have need to use a Volker-Craig terminal (VC4604)
(horrible, I know) and want to run emacs when I'm using it, on a VAX
system running VMS (even more horrible ;-)). I have some problems with
this.

	Firstly, I found out that the terminal can be set in two modes,
one of which is equivalent to a VC404 terminal, the other emulating an
adm3a (whatever that is). Unfortunately, our VAX supports neither of these
directly, so I have to do "$set term/unknown". However, I have found out
that if I do

$define EMACS_TERM "adm3a"

then emacs will run (hurray!!!).....  well almost -- this is where the
problems (and hopefully your solutions) come in. When emacs redraws a
buffer, it seems to send only line-feed characters where the terminal
expects a line-feed carriage-return pair. In other words, if I type in

This is line 1.
And this is line 2.

terminating each line with <RET>, then initially it appears on screen
exactly as shown above. But if i do something which causes emacs to redraw
the screen (e.g. CTL-L, or exit emacs and then return to the file), it looks
like this

This is line 1.
               And this is line 2.

Needless to say, this makes the thing useless for working with :-(

To further complicate matters (and this explanation), emacs 'thinks'
the screen is correctly drawn (ie thinks it looks like the first example),
so if I start deleting the white space below "This is line 1.", emacs
starts deleting "And this is line 2." This is why I think the problem is
caused by emacs only sending LF and the terminal needing LF-CR.

I realise this is probably not a widespread problem (everybody else gets
to use 'real' terminals under UN*X -- believe me, i'd rather do the same),
but we have half a dozen of these beasts lying around, and if we could
actually use them for editing we'd be very very happy :-))

If you have any ideas for a solution, or even a workaround to make emacs
send LF-CR instead of LF (if this is indeed the problem), I'd be very
grateful to hear from you. E-mail or post, as you prefer.

Thanks,
Peter. 

-- 
================================================================================
Peter Duffy           |JANET:   p.duffy@uk.ac.strath.vaxa
EEE Dept.             |Internet:p.duffy%vaxa.strath.ac.uk@nsfnet-relay.ac.uk
Strathclyde University|BITNET:  p.duffy%vaxa.strath.ac.uk@UKACRL
Glasgow G1 1XW        |UUCP:    p.duffy%vaxa.strath.ac.uk@ukc.uucp
Scotland.             |
================================================================================

-- 
================================================================================
Peter Duffy           |JANET:   p.duffy@uk.ac.strath.vaxa
EEE Dept.             |Internet:p.duffy%vaxa.strath.ac.uk@nsfnet-relay.ac.uk
Strathclyde University|BITNET:  p.duffy%vaxa.strath.ac.uk@UKACRL
Glasgow G1 1XW        |UUCP:    p.duffy%vaxa.strath.ac.uk@ukc.uucp
Scotland.             |
================================================================================