Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/