From: Phil Carmody <fatphil@altavista.com>
To: axp-list@redhat.com
Subject: Re: setcolor equivalent
Date: 21 Aug 2000 08:19:28 -0700 [thread overview]
Message-ID: <20000821151928.3423.cpmta@c012.sfo.cp.net> (raw)
On Mon, 21 August 2000, Ron West wrote:
> <P><FONT SIZE=2 FACE="Arial">We are porting our applications over from SCO Unix to Linux. Our user applications are not written to take advantage of the GUI, but are all Borne or Korn shell scripts executing from the command line. One command that executes from the .profile is the SCO setcolor command which changes the forground and background colors of the user's screen. I (a new Linux admin) have looked everywhere for an equivalent command, but have found nothing, no referrences to anything other than DIR_COLOR which isn't what we want. Is there a way to do this? I simply want to color the screen at the Borne shell blue with white characters.</FONT></P>
I'm guessing here, but I suspect it will be tricky.
Does DIR_COLOR work for setting colours for an ls?
If so, look at the source for ls, and see how it changes the colours. It's probably something in the termcap, i.e. terminal-type specific escape characters. Maybe you could find the excape sequences used in the termcap file if you know your terminal type is "linux" or similar?
Are you never expecting people to run these from within the X windowing system? If not (i.e. they might use X) why do you want to override the users' own color preferences. As a colour-deficient computer user I find that other people's choices can be nighmarish.
Phil
Judge Lewis Kaplan's idiocy finally proved August 17, 2000:
"Defendants, on the other hand, are adherents of a movement
that believes that information should be available without
charge to anyone clever enough to break into the computer
systems or data storage media in which it is located."
_______________________________________________________________________
Free Unlimited Internet Access! Try it now!
http://www.zdnet.com/downloads/altavista/index.html
_______________________________________________________________________
next reply other threads:[~2000-08-21 15:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-08-21 15:19 Phil Carmody [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-08-21 16:58 setcolor equivalent Ron West
2000-08-21 14:57 Ron West
2000-08-21 15:47 ` Jeff Sturm
2000-08-21 15:48 ` Jeff Sturm
2000-08-21 16:01 ` Reinier Bikker
2000-08-21 16:18 ` Michal Jaegermann
2000-08-22 13:30 ` Peter Rye
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox