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 141902F61C for ; Mon, 21 Aug 2000 10:58:20 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id KAA32138 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 10:58:19 -0400 Received: from sockeye.pacificrimcorp.com ([199.88.128.29]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id KAA32134 for ; Mon, 21 Aug 2000 10:58:19 -0400 Received: by sockeye.pacificrimcorp.com with Internet Mail Service (5.5.2650.21) id ; Mon, 21 Aug 2000 07:57:54 -0700 Message-ID: From: Ron West To: "'axp-list@redhat.com'" Subject: setcolor equivalent Date: Mon, 21 Aug 2000 07:57:53 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C00B80.2F19C9B4" 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 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C00B80.2F19C9B4 Content-Type: text/plain; charset="iso-8859-1" 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 ------_=_NextPart_001_01C00B80.2F19C9B4 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable setcolor equivalent

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

------_=_NextPart_001_01C00B80.2F19C9B4-- 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 _______________________________________________________________________ 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 7C2952F0B6 for ; Mon, 21 Aug 2000 11:48:40 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id LAA05657 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 11:48:40 -0400 Received: from neoavalon.sigma6.com (neoavalon.sigma6.com [204.176.48.130]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA05653 for ; Mon, 21 Aug 2000 11:48:39 -0400 Received: from appnet.com (IDENT:jsturm@localhost [127.0.0.1]) by neoavalon.sigma6.com (8.9.3/8.9.3) with ESMTP id LAA28491 for ; Mon, 21 Aug 2000 11:47:13 -0400 Message-ID: <39A14F01.F59BAB15@appnet.com> Date: Mon, 21 Aug 2000 11:47:13 -0400 From: Jeff Sturm Organization: AppNet Inc. X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: setcolor equivalent References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Foreground: tput setf [0-7] Background: tput setf [0-7] Reset to defaults: tput sgr0 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. -- Jeff Sturm jeff.sturm@appnet.com 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 AC4C52F6C8 for ; Mon, 21 Aug 2000 11:50:11 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id LAA05790 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 11:50:11 -0400 Received: from neoavalon.sigma6.com (neoavalon.sigma6.com [204.176.48.130]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA05785 for ; Mon, 21 Aug 2000 11:50:10 -0400 Received: from appnet.com (IDENT:jsturm@localhost [127.0.0.1]) by neoavalon.sigma6.com (8.9.3/8.9.3) with ESMTP id LAA28511 for ; Mon, 21 Aug 2000 11:48:44 -0400 Message-ID: <39A14F5B.C7C2F95A@appnet.com> Date: Mon, 21 Aug 2000 11:48:43 -0400 From: Jeff Sturm Organization: AppNet Inc. X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: setcolor equivalent References: <39A14F01.F59BAB15@appnet.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Jeff Sturm wrote: > Background: > > tput setf [0-7] Oops, that'd be "tput setb ..." -- Jeff Sturm jeff.sturm@appnet.com 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 D0BE72F35D for ; Mon, 21 Aug 2000 12:01:57 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id MAA07023 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 12:01:57 -0400 Received: from max.phys.uu.nl (max.phys.uu.nl [131.211.32.73]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA07010 for ; Mon, 21 Aug 2000 12:01:56 -0400 Received: from itpuu.phys.uu.nl (itpuu.phys.uu.nl [131.211.32.67]) by max.phys.uu.nl (8.9.3/8.9.3/hjm) with ESMTP id SAA13042 for ; Mon, 21 Aug 2000 18:01:54 +0200 (MET DST) Date: Mon, 21 Aug 2000 18:01:54 +0200 (MET DST) From: Reinier Bikker To: axp-list@redhat.com Subject: Re: setcolor equivalent In-Reply-To: <39A14F5B.C7C2F95A@appnet.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Another option is to use escape codes. This makes it possible to change colors within a line of output. Below is the classic example which shows their usage. #!/bin/bash # colorscript: Display ANSI colours. # esc="\033[" echo -n " _ _ _ _ _40 _ _ _ 41_ _ _ _42 _ _ _ 43" echo "_ _ _ 44_ _ _ _45 _ _ _ 46_ _ _ _47 _" for fore in 30 31 32 33 34 35 36 37; do line1="$fore " line2=" " for back in 40 41 42 43 44 45 46 47; do line1="${line1}${esc}${back};${fore}m Normal ${esc}0m" line2="${line2}${esc}${back};${fore};1m Bold ${esc}0m" done echo -e "$line1\n$line2" done Reinier. 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 A23672F097 for ; Mon, 21 Aug 2000 12:18:13 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id MAA08864 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 12:18:13 -0400 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA08857 for ; Mon, 21 Aug 2000 12:18:12 -0400 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.9.3/8.9.3) id KAA10637 for axp-list@redhat.com; Mon, 21 Aug 2000 10:18:03 -0600 From: Michal Jaegermann Message-Id: <200008211618.KAA10637@ellpspace.math.ualberta.ca> Subject: Re: setcolor equivalent To: axp-list@redhat.com Date: Mon, 21 Aug 2000 10:18:03 -0600 (MDT) In-Reply-To: from "Ron West" at Aug 21, 2000 07:57:53 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 > > We are porting our applications over from SCO Unix to Linux. This will be Linux on Alpha, I take, or you would not be posting on this list? > I simply want to color the screen at the Borne > shell blue with white characters. >From the context I understand that you are talking about Linux console? Try (this is 'echo' from bash): echo -en "\\033[1;1;44m" echo -n and now for something totally echo -en "\\033[0;39m" echo " different" In general for things like that consult Keyboard-and-Console-HOWTO. If you just want boxes with a colour on a console type 'man dialog' and see examples which come with it. So where is this Alpha question? Michal 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 345A02F029 for ; Mon, 21 Aug 2000 12:59:11 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id MAA12888 for axp-list@listman.redhat.com; Mon, 21 Aug 2000 12:59:11 -0400 Received: from sockeye.pacificrimcorp.com ([199.88.128.29]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA12883 for ; Mon, 21 Aug 2000 12:59:10 -0400 Received: by sockeye.pacificrimcorp.com with Internet Mail Service (5.5.2650.21) id ; Mon, 21 Aug 2000 09:58:42 -0700 Message-ID: From: Ron West To: "'axp-list@redhat.com'" Subject: RE: setcolor equivalent Date: Mon, 21 Aug 2000 09:58:42 -0700 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C00B91.0F51E484" 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 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C00B91.0F51E484 Content-Type: text/plain; charset="iso-8859-1" I want to thank everyone that responded to my shell color questions. We now have a blue screen with white characters. Ron West ------_=_NextPart_001_01C00B91.0F51E484 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: setcolor equivalent

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

Ron West

------_=_NextPart_001_01C00B91.0F51E484-- 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 0D0AB2F0D2 for ; Fri, 25 Aug 2000 11:37:55 -0400 (EDT) Received: (from mail@localhost) by mail.redhat.com (8.8.7/8.8.7) id LAA05408 for axp-list@listman.redhat.com; Fri, 25 Aug 2000 11:37:54 -0400 Received: from giles.apana.org.au (root@giles.apana.org.au [203.14.156.2]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id LAA05393 for ; Fri, 25 Aug 2000 11:37:42 -0400 Received: (from uucp@localhost) by giles.apana.org.au (8.8.7/8.8.7) with UUCP id BAA07526 for axp-list@redhat.com; Sat, 26 Aug 2000 01:36:02 +1000 Received: (from uucp@localhost) by pestilence.plague.apana.org.au (8.9.3/8.9.3) with UUCP id BAA31629 for axp-list@redhat.com; Sat, 26 Aug 2000 01:05:53 +1000 Received: (qmail 14990 invoked by uid 500); 22 Aug 2000 13:30:05 -0000 To: axp-list@redhat.com Subject: Re: setcolor equivalent References: X-OS: Linux Alpha 2.2.13 From: Peter Rye Date: 22 Aug 2000 23:30:05 +1000 In-Reply-To: Ron West's message of "Mon, 21 Aug 2000 07:57:53 -0700" Message-ID: User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 >>>>> "Ron" == Ron West writes: Ron> We are porting our applications over from SCO Unix to Linux. Our Ron> user applications are not written to take advantage of the GUI, Ron> but are all Borne or Korn shell scripts executing from the command Ron> line. One command that executes from the .profile is the SCO Ron> setcolor command which changes the forground and background colors Ron> of the user's screen. I (a new Linux admin) have looked Ron> everywhere for an equivalent command, but have found nothing, no Ron> referrences to anything other than DIR_COLOR which isn't what we Ron> want. Is there a way to do this? I simply want to color the Ron> screen at the Borne shell blue with white characters. Does `setterm -background "whatever" -store' do what you want? man setterm gives details as usual.