Article View: alt.linux
Article #307Re: help with color and $PS1
From: N. Yeamans
Date: Fri, 01 Jun 2001 04:34
Date: Fri, 01 Jun 2001 04:34
15 lines
1726 bytes
1726 bytes
Upon the 31 of May in the hour of 21 MDT, the great David. E. Goble did decree: > PS1="\n\[\033[1;35m\]IBM 686/pr120+ Linux RedHat 6.2 > \[\033[0;36m\]\$(date)\n\[\u@\h \W]\\$ " > > How do I reset the color, so that everything typed by the user is > light grey, while keeping the prompts colors. See if this helps: '\[\033[37;40;0;10m\]' I think it resets all colors and highlightings. I tested it in my virtual term, rxvt, and xterm. Appears to work, but I just pulled it out of code I wrote a year ago...don't remember how it works. -- Norman Yeamans - x43896@home.com
Technical Details
Message-ID:
<slrn9he6tc.9v.x43896@c1437474-b.provo1.ut.home.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mailReferences:
<3b152146.1043486@news.adelaide.on.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 100c5f,dfcc356ec44eb60d X-Google-Attributes: gid100c5f,public X-Google-Thread: f9b51,dfcc356ec44eb60d X-Google-Attributes: gidf9b51,public X-Google-Thread: 102983,dfcc356ec44eb60d X-Google-Attributes: gid102983,public X-Google-ArrivalTime: 2001-05-31 21:34:27 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail Newsgroups: alt.linux,aus.computers.linux,comp.os.linux.setup From: x43896@home.com (N. Yeamans) Subject: Re: help with color and $PS1 References: <3b152146.1043486@news.adelaide.on.net> Followup-To: comp.os.linux.setup Organization: none Message-ID: <slrn9he6tc.9v.x43896@c1437474-b.provo1.ut.home.com> User-Agent: slrn/0.9.7.0 (Linux) Lines: 15 Date: Fri, 01 Jun 2001 04:34:26 GMT NNTP-Posting-Host: 24.176.170.118 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 991370066 24.176.170.118 (Thu, 31 May 2001 21:34:26 PDT) NNTP-Posting-Date: Thu, 31 May 2001 21:34:26 PDT