From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id F0C742F160 for ; Mon, 21 Aug 2000 11:21:24 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id LAA03431 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 11:21:24 -0400 Received: from c012.sfo.cp.net (c012-h018.c012.sfo.cp.net [209.228.12.166]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id LAA03336 for ; Mon, 21 Aug 2000 11:19:59 -0400 Received: (cpmta 3424 invoked from network); 21 Aug 2000 08:19:28 -0700 Date: 21 Aug 2000 08:19:28 -0700 Message-ID: <20000821151928.3423.cpmta@c012.sfo.cp.net> X-Sent: 21 Aug 2000 15:19:28 GMT Received: from [193.65.100.99] by mail.altavista.com with HTTP; 21 Aug 2000 08:19:28 PDT Content-Type: text/plain Content-Disposition: inline Mime-Version: 1.0 To: axp-list@redhat.com From: Phil Carmody X-Mailer: Web Mail 3.7.0.11 Subject: Re: setcolor equivalent X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors On Mon, 21 August 2000, Ron West wrote: >

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.

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 _______________________________________________________________________