[unix-pc.general] wide-screen vi

jeff@cjsa.WA.COM (C. Jeffery Small) (10/14/88)

Has anyone been able to successfully set up for wide-screen vi editing
session on the console?  I have been trying to use the version 3.51 supplied
"132-Character" font in /usr/lib/wfont/PLAIN.R.E.11.A  (which BTW is only
120 characters wide on the console!) by doing the following:

    1:  Add termcap and terminfo entries called s4-120 which duplicate the
	s4 entry with #co120 and #li26.  (Also tried li24 and li25).

    2:  TERM=s4-120 ; export TERM

    3:  setf /usr/lib/wfont/PLAIN.R.E.11.A 0	(load font into slot 0)

    4:  /usr/bin/vi [filename]


So far, so good.  The editor fires up with the new font and handles the
120 column width and sets a 25 line window.  However, there are problems:

    A:  The screen update gets confused and doesn't properly indicate which
	line you are actually on (in the edit buffer).  As you would expect,
	a ^L will bring things back in line.

    B:  When you type certain editing commands (eg. A) I get a  "H5", "E3",
        etc appearing on the screen.  Sometimes these disappear with a refresh
	while other times they are actually inserted into the text at the
	current cursor position. In either case, the proper editor effect is
	not performed.  As far as I can tell, there are no termcap/terminfo
	values with a these strings embedded in them and they are not the
	result of key mapping from function keys.

    C:  There are a few other minor problems with screen refresh - like
	the info/status line getting "picked up" and scrolled up the screen
	with your text.

Any clues as to what I am doing wrong would be greatly appreciated.

--
Jeffery Small    (206) 485-5596            uw-beaver!uw-nsr!uw-warp
C. Jeffery Small and Associates                                    !cjsa!jeff
19112 152nd Ave NE - Woodinville, WA  98072           uunet!nwnexus

jr@amanue.UUCP (Jim Rosenberg) (10/21/88)

In article <135@cjsa.WA.COM> jeff@cjsa.WA.COM (C. Jeffery Small) writes:
>Has anyone been able to successfully set up for wide-screen vi editing
>session on the console?

>The editor fires up with the new font and handles the
>120 column width and sets a 25 line window.  However, there are problems

[details omitted]

I don't know if this is your problem or not, but I found out that to get an
odd-sized font to work right in vi the window has to be sized very carefully.
Sizing with the mouse using a skinny font can result in a window slightly
bigger than termcap thinks your line is long -- & this causes it to get its
leedul self most yuckily confused!  Try using windy to size your window to
the exact number of pixels needed to get the number of columns you've told
termcap you've got.  See if this helps.
-- 
 Jim Rosenberg
     CIS: 71515,124                         decvax!idis! \
     WELL: jer                                   allegra! ---- pitt!amanue!jr
     BIX: jrosenberg                  uunet!cmcl2!cadre! /