[comp.sys.mac.comm] MacLayers VT100 problem

johnmay@beowulf.ucsd.edu (John May) (04/12/91)

I'm having a problem when I run vi through MacLayers.  When the
cursor is at the bottom of the window and I want to move down a
line, the text doesn't scroll up properly.  Instead, I get a
beep and the characters [A appear, followed by the line that
should have been scrolled into place.  Apparently, MacLayers
isn't interpreting the vt100 scroll-up command properly.  This
happens whether or not I have the Unix-side layers manager
running, whether I'm using the stock vt100 TERMCAP or the
customized one supplied with MacLayers, at a variety of data
rates (from 2400 to 9600 with compression) and with a variety
of settings of the number of bits and parity (though I don't
claim to have tried them all).  It does NOT happen when I run
another terminal program (Zterm).  This problem makes vi nearly
unusable on long files.  Anyone know what's going on?

John

jeffe@eniac.seas.upenn.edu (George Jefferson ) (04/13/91)

:I'm having a problem when I run vi through MacLayers.  When the
:cursor is at the bottom of the window and I want to move down a
:line, the text doesn't scroll up properly.  Instead, I get a
:beep and the characters [A appear, followed by the line that

make sure your _orientation_ is set properly. 
(that'll keep em busy.. :-)

seriously, it sounds like your MacLayers TERMCAP is not
set properly.  ( the arrow key sends ^[OA, which is where I suppose 
the [A garbage comes from )

one problem I had is that the TERMCAP gets reset
to vt100 if you do rlogin/telnet after activating layers
(there is a simple work around if this is your problem )

I have also heard a rumor that vi on new Sun's uses the
terminfo database rather than termcap, which would seem to
throw a wrench in MacLayers (already shakey) scheme.

BTW does anyone know how layers decides to go into "vi" (fixed window)
mode.  It goes into "vi" mode with emacs, which bugs me since emacs
could handle window size changes (I'd at least like to try it).




--
-george            george@mech.seas.upenn.edu

rosen@cs.utexas.edu (Eric Carl Rosen) (04/13/91)

>BTW does anyone know how layers decides to go into "vi" (fixed window)
>mode.  It goes into "vi" mode with emacs, which bugs me since emacs
>could handle window size changes (I'd at least like to try it).

I believe it decides to go into "vi" mode whenever it receives a VT-100
escape sequence that moves the cursor up. It seems to drop out of "vi"
mode whenever a terminal scroll is generated (causing the entire terminal
to scroll up by pressing [RETURN] on the last line). You can resize the
window in "vi" mode by holding down <shift> when you click in the grow-box.
I haven't tried this with E-macs, but vi certainly gets confused when you
do this. It is much safer, although less convenient, to adjust your window
size _before_ running your curses-compatible program.

jeffe@eniac.seas.upenn.edu (George Jefferson ) (04/15/91)

:>BTW does anyone know how layers decides to go into "vi" (fixed window)
:>mode.  It goes into "vi" mode with emacs, which bugs me since emacs
:>could handle window size changes (I'd at least like to try it).


:You can resize the
:window in "vi" mode by holding down <shift> when you click in the grow-box.
:I haven't tried this with E-macs, but vi certainly gets confused when you
:do this.

I am pleased to report that emacs responds to window resizing under
layers quite nicely.

Thanks all.


--
-george            george@mech.seas.upenn.edu