delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/19/20:18:28

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
Message-ID: <4356E1FB.45190D8E@dessent.net>
Date: Wed, 19 Oct 2005 17:16:59 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: exiting vim changes background colour of console
References: <88ACCA0E0A7A914DAFBA3918021605D24E3FD4 AT WPEXCH08 DOT colesmyer DOT ad DOT cmltd DOT net DOT au>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Robert Bram wrote:

> None of the PS1s above fix the issue! I.e. when I open a console I see what I want: console with white background and black foreground, with the prompt rendered as black foreground on grey background, but then whenever I do a man, less, vim and exit, the screen get a black background that I can make go away by pressing "ENTER" repeatedly i.e. shifting the black off screen.

If you want to set the default FG and BG of the console you should not
try to do it with the prompt, you should set it when the console is
created.  See my previous reply.  It will be very hard to control the
overall default color of the console by adding escape sequences to the
prompt, because it is not designed to work like that.

Brian

--
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