[net.unix-wizards] tset vt100 screws up Suns

gerolima@wdl1.UUCP (10/26/85)

Re: Subject: tset vt100 destroys scrolling on SUN-2/120
>We have discovered that accidentally doing a "tset vt100" from
>our SUN consoles screws up their scrolling (and vi, and more, and....)
>The problem is due to the initialization string sent to the
>console (ESC[1;24r).  We have not been able to reinitialize the console
>to its virgin state without rebooting (ugh!).  Is there a nice
>solution, and if so, is it documented anywhere?

You must remember that the Sun console is NOT a vt100. Most notably,
it is of different dimensions (34x80 vs 24x80). The "\E[1;24t" is setting
the height (I guess) to 24 lines. It is obvious that this is going to 
screw up vi (yay!), emacs (boo!...but let's leave that to net.flame), 
ROUGUE, HACK...(excuse, excuse! getting away from myself).

		Quick solution? Tset back to "sun."
		(and then do a "reset" to be safe)


I'm sure that it's in your /etc/termcap (under ND), or the yp termcap 
(under NFS).

There may be documentation for this, but I see no need for it. After all,
isn't UNIX s'pposed to be kriptyc, anyway?


		Mark Gerolimatos
		(Henry made a wizard out of Markie!)^

		Arpa: gerolima@ford-wdl1
		UUCP: fortune!wdl1!gerolima



^ For those to whom this line was lost on: "Henry made a lady out of
  Lizzy" was the slogan for the Model-A Ford.

guy@sun.uucp (Guy Harris) (11/09/85)

> I'm sure that it's in your /etc/termcap (under ND), or the yp termcap 
> (under NFS).

"yp termcap"?  What the hell is that?  We certainly don't have it on any
machines at *this* site....  (Also note that there is no reference
*whatsoever* to a Yellow Pages "termcap" database under "Yellow Pages
Policies" in the "Sun Network Services" documentation, or in "termcap(5)",
or in the "termcap" software.)

> There may be documentation for this...

There is; see CONS(4S) in the Sun UNIX 2.0 System Interface Manual.  (No, it
wasn't in the 1.x documentation; *nostra culpa*  - not *mea*, I didn't work
here then.)

	Guy Harris

phil@trlamct.uucp (phil) (11/23/85)

>We have discovered that accidentally doing a "tset vt100" from
>our SUN consoles screws up their scrolling (and vi, and more, and....)
>The problem is due to the initialization string sent to the
>console (ESC[1;24r).  We have not been able to reinitialize the console
>to its virgin state without rebooting (ugh!).  Is there a nice
>solution, and if so, is it documented anywhere?

The solution is to send the string (ESC[s) to the console - e.g.
	% echo '^[[s'
We had the same problem and it took ages to find the documentation.
Appendix A.8.1.2  of the System Manager's Manual lists all the control
sequences used by the Sun terminal.

		Phil Nicholson.
D
D

guy@sun.uucp (Guy Harris) (11/28/85)

> We had the same problem and it took ages to find the documentation.
> Appendix A.8.1.2  of the System Manager's Manual lists all the control
> sequences used by the Sun terminal.

In the Sun UNIX 2.0 documentation, this information was also added to
CONS(4) in the System Interface Manual (and the additional sequences
accepted by the terminal emulator in Shelltool are documented in the
SunWindows manual).  Unlike a certain large telephone company, we don't
force you to read administrator's manuals to find out how devices work...

	Guy Harris