Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* setcolor equivalent
@ 2000-08-21 14:57 Ron West
  2000-08-21 15:47 ` Jeff Sturm
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Ron West @ 2000-08-21 14:57 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

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.

Thanks,
Ron West

[-- Attachment #2: Type: text/html, Size: 1083 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread
* Re: setcolor equivalent
@ 2000-08-21 15:19 Phil Carmody
  0 siblings, 0 replies; 8+ messages in thread
From: Phil Carmody @ 2000-08-21 15:19 UTC (permalink / raw)
  To: axp-list

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

_______________________________________________________________________




^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: setcolor equivalent
@ 2000-08-21 16:58 Ron West
  0 siblings, 0 replies; 8+ messages in thread
From: Ron West @ 2000-08-21 16:58 UTC (permalink / raw)
  To: 'axp-list@redhat.com'

[-- Attachment #1: Type: text/plain, Size: 129 bytes --]

I want to thank everyone that responded to my shell color questions.  We now
have a blue screen with white characters.

Ron West

[-- Attachment #2: Type: text/html, Size: 513 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2000-08-25 15:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-21 14:57 setcolor equivalent 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
  -- strict thread matches above, loose matches on Subject: below --
2000-08-21 15:19 Phil Carmody
2000-08-21 16:58 Ron West

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox