SUMMARY: Inverse Screen on Sun Terminal

From: Anthony Yen (tyen@mundo.eco.utexas.edu)
Date: Fri Feb 14 1992 - 17:27:56 CST


First of all, thanks to all who replied! The responses came from:

John Hasley<hasley@andy.bgsu.edu>
Claus Assmann <ca@idefix.informatik.uni-kiel.dbp.de>
Brent Alan Wiese <brent@crick.ssctr.bcm.tmc.edu>
Michael Assels <mjassels@concour.cs.concordia.ca>
James J Dempsey <jjd@spserv.bbn.com>
Gustavo Vegas <gustavo@davinci.concordia.ca>
lf@ele.puc-rio.br (Luis Fernando V. Gomes)
chuck@mustang (Chuck Yerkes)
kalli!kevin@fourx.Aus.Sun.COM (Kevin Sheehan {Consulting Poster Child})
"Andrew Luebker" <aahvdl@eye.psych.umn.edu>
shipley@kizmiaz.tcs.com
bchivers@smiley.mitre.org (Brent Chivers)
ralph@swmerc.rain.com (Ralph Merwin)
marke@violet.berkeley.edu
john@mlb.semi.harris.com (John M. Blasik)
matthew@cs.adelaide.edu.au (Matthew Donaldson)
Robert L Krawitz <rlk@Think.COM>
Hugo Becker <griffin!hugo@snowhit.att.com>
Richard Kurtz <rmk@snowhit.att.com>
antonson@software.org (Todd S. Antonson)
doug@perry.berkeley.edu (Doug Neuhauser)
Steve Riley <pacacc!steve@sacto.West.Sun.COM>
Mike Raffety <miker@sbcoc.com>
satmb@gauss.med.harvard.EDU (Timothy Baum 432-2765)
John Valdes <valdes@geosun.uchicago.edu>
bks@vangogh.CS.Berkeley.EDU (Brian K. Shiratsuki)
Frank G. Fiamingo <frank@tardis.acs.ohio-state.edu>

The answer:

The FM is console (4). The sequence suggested varied:

ESC[0m for normal text, ESC[7m for inverted display (didn't work on my SPARCs)
ESC[p for normal text, ESC[q for inverted display (worked on my SPARCs)

ralph@swmerc.rain.com (Ralph Merwin) pointed out:

        Don't know for sure about the Sun term, but the VTxxx series use
        <esacpe>[?5h to set reverse video, and <escape>[?5l for normal video.

These don't work on my SPARCs. Mike Raffety <miker@sbcoc.com> pointed me
to termcap(5):

>From the termcap(5) man page:

          se str end standout mode
          so str begin standout mode

So, to begin standout mode (inverse), do an escape, left square bracket,
digit 7, lowercase m ("\E[7m"), and to end standout mode (inverse), do
an escape, left square bracket, lowercase m ("\E[m").

Frank G. Fiamingo <frank@tardis.acs.ohio-state.edu> wrote:

Check the manpage for gettytab(5). I use the default entry:

default:\
        :ap:lm=\E[q\r\n%h login\72 :sp#9600:\
        :im=\r\nACS Workstation Lab\n:

to invert the screen on my workstation.

For end users, directions varied:

echo "^[[p" > /dev/console # black characters on a white background
echo "^[[q" > /dev/console # white characters on a black background
# The ^[ is the single character generated by the Esc key. It's a bit tricky
# to type it on the command line; you must type CTRL-V Esc.
(I discovered that you didn't have to redirect this to /dev/console.)

alias black 'echo -n "^[[q"'
alias white 'echo -n "^[[p"'

$ echo '\033[q' # Note how this neatly sidesteps having to use ^V

Thanks again to all who replied!

Anthony Yen - tyen@mundo.eco.utexas.edu ... Sail tough
SPARC SysAdmin - UT/Austin - Economics or go home ... Kowabunga! ...



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:06:36 CDT