delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/16/23:25:14

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: Customising prompt
Date: Mon, 17 Oct 2005 13:24:57 +1000
Message-ID: <88ACCA0E0A7A914DAFBA3918021605D24E3FCC@WPEXCH08.colesmyer.ad.cmltd.net.au>
From: "Robert Bram" <Robert DOT Bram AT colesmyer DOT com DOT au>
To: <cygwin AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j9H3PDsk005066

Hi All!

I want my prompt like this:
bash2.05b User rbram on host cml035835 in dir /cygdrive/c/
Mon Oct 17 12:52:59> 

Here is my attempt so far:
PS1="\n\s\v \[\e[31m\]User \[\e[34m\]\u \[\e[31m\]on host \[\e[34m\]\h\[\e[31m\] in dir \[\e[34m\]\w\n\d \t> \e[30;47m "

The issue is this: the I am getting black text on grey background - why is this? I thought "\e[30;47m " means black text on white background. That is what I understood from this page:
http://www.pantz.org/scripting/shell/colorterm.shtml

Kind regards,

Rob
:)

-------
Robert Mark Bram
Portal Analyst Programmer
eTechnology, Coles Myer Limited
robert DOT bram AT colesmyer DOT com DOT au
+61 3 9635 1036


This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses.  No warranty is made that this material is free from computer virus or any other defect or error.  Any loss/damage incurred by using this material is not the sender's responsibility.  The sender's entire liability will be limited to resupplying the material.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019