[comp.unix.xenix] Your friend BOB

davidsen@crdos1.crd.ge.COM (Wm E Davidsen Jr) (11/18/89)

  Someone was asking about a way to do screen blank on Xenix. I have a
suggestion, like BOB do it. BOB is a TLA for "Black on Black". Here's
how it works:

	1. set the current foreground and background to black
	2. move the cursor to the top of the screen
	3. clear to end of screen

  I have one virtual terminal with no getty, and I BOB it at boot. Then
I can manually or automatically change screens to that screen when the
lowest idle time from "who -u" gets over your personal choice.

  You can also set the screen colors back to your favorite as long as
nothing writes to the screen.

Here's BOB in ANSI:
	echo "\033[30;40m\033[H\033[J\c" > /dev/tty11

and to set screen 11:
	echo "\033[10z\c"

Hope this helps some one. If you have an old console device driver you
may have to replace the color sequence "\033[30;40m" with
"\033[30m\033[40m" to make it work.

Someone could drop me mail and tell me if this still works on SCO UNIX
as well.
-- 
bill davidsen	(davidsen@crdos1.crd.GE.COM -or- uunet!crdgw1!crdos1!davidsen)
"The world is filled with fools. They blindly follow their so-called
'reason' in the face of the church and common sense. Any fool can see
that the world is flat!" - anon