Xref: utzoo comp.sys.att:8202 comp.unix.questions:18174 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!ucsd!ucsdhub!cuuxun!cuuxb!migh From: migh@cuuxb.ATT.COM (~XT6561110~Mike Hall~C24~M26a~6029~) Newsgroups: comp.sys.att,comp.unix.questions Subject: Re: Escape codes and colors in AT+T SysV. Summary: try terminfo Message-ID: <4349@cuuxb.ATT.COM> Date: 4 Dec 89 16:03:59 GMT References: <8@dynasys.UUCP> <1989Dec3.025200.26143@virtech.uucp> Reply-To: migh@cuuxb.UUCP (Mike Hall) Followup-To: comp.sys.att Organization: AT&T Computer Systems, Lisle, IL Lines: 19 = From: cpcahil@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