delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.9 required=5.0 tests=BAYES_00,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 3 May 2010 11:15:26 MDT |
To: | <cygwin AT cygwin DOT com> |
Subject: | $PS1 doesn't appear to work the same after version 1.7 |
From: | <lynn AT swcp DOT com> |
Message-ID: | <twig.1272906926.48547@swcp.com> |
X-Client-IP: | 134.253.26.4 |
Reply-To: | lynn AT swcp DOT com |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
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 |
I use the following to setup my $PS1 bash prompt: PS1="\[\033]0;\w\007\033[32m\]\u@\h\[\033[36m \W\033[0m\]> " This attempts to emit the username AT hostname current_folder> (in color) This still works on my Linux and Solaris boxes. It used to work under Cygwin, but I believe that it began failing after the upgrade to 1.7. I am currently at 1.7.5-1. The problem arises when I use the keyboard up-arrow to scroll back to select a previous command. The position of the command is incorrect and overwrites the portions of the prompt. PS1="\u@\h \W> " continues to work as expected. There was a recent update effecting PS1 but it did not fix this problem. Thanks. -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |