Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucla-cs!elroy.jpl.nasa.gov!swrinde!ucsd!pacbell.com!att!cbfsb!cbnewsb.cb.att.com!mtd From: mtd@cbnewsb.cb.att.com (Mario T DeFazio) Newsgroups: comp.sys.att Subject: Re: Tweaking 6386 display colors Summary: Use tput(1) Message-ID: <1991May3.220534.8867@cbfsb.att.com> Date: 3 May 91 22:05:34 GMT References: <1991May2.183759.2485@cbfsb.att.com> Sender: news@cbfsb.att.com Distribution: usa Organization: AT&T Bell Laboratories Lines: 45 In article <1991May2.183759.2485@cbfsb.att.com>, dab@cbnewsb.cb.att.com (david.a.berk) writes: > Has anyone written a program that allows someone to alter the > default colors of the console ? > > Dave Berk > ..!att!emdbl1!dab > If you are using UNIX SVR3.2, you can use tput(1). The following table shows the colors that can be set with the shell command line tput p1 p2 where p1 is 'setf' to set foreground color 'setb' to set background color and p2 is the numeric color code. p2 color --- ----- 0 black 1 blue 2 green 3 cyan 4 red 5 magenta 6 brown 7 white This is not documented anywhere that I know of. I looked at the terminfo description for AT386 to figure it out. The raw escape sequences are given in the display(7) manual page. You might also look at the tput(1) and terminfo(4) manual pages. Hope this helps, Mario DeFazio AT&T EasyLink Services, Lincroft, New Jersey AT&T Mail: !mdefazio Internet: mdefazio@attmail.com Voice: (908)576-2590 mtd@pegasus.att.com