Escape codes and colors in AT+T SysV.

~XT6561110~Mike Hall~C24~M26a~6029~ migh at cuuxb.ATT.COM
Tue Dec 5 03:03:59 AEST 1989


 = From: cpcahil at virtech.uucp (Conor P. Cahill)
 = You can do this from the shell (or your .profile) with the following:
 = 	echo "\033[XXm" 

And if you want to be more device independant, try using "tput" when
your TERM variable is set to "AT386", instead of "AT386-M" .  Like this:

	TERM=AT386 export TERM
	tput setb 3		# set character cell background to color 3
	tput setf 4		# set character cell foreground to color 4
And here's a handy one:
	tput clear		# clear the screen, home to upper left

With luck, two years from now, these will still work on your 2000x2000,
1024 color display, and you won't have to remember the escape sequences
for it! :-)

Mike Hall	att!cuuxb!migh



More information about the Comp.unix.questions mailing list