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: <435748FA.BDE6EE75@dessent.net> Date: Thu, 20 Oct 2005 00:36:26 -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> <4356E9C2 DOT 3070604 AT student DOT lu DOT se> <4356EE19 DOT 2CCD949D AT dessent DOT net> <4357422B DOT 7010507 AT student DOT lu DOT se> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Lennart Borgman wrote: > Thanks very much this! However I still have problem with long commands. > I start Cygwin with > > ****** cygwin.cmd: > @echo off > set chere_invoking=1 > D:\cygwin\bin\bash --login -i > > When the command wraps into the next line then I can not edit the > command any more. Is there something I can do about this? Can you elaborate on what you mean by "can not edit the command any more"? The expected behavior is that it should spill (wrap) onto the next line, but you should still be able to use backspace/arrow keys/etc to manipulate the command. I tried the above setting of PS1 and it worked fine. If you'd rather that the line scroll and not wrap, you can add the following to your ~/.inputrc: set horizontal-scroll-mode On If you still have problems with editing a command that exceeds the screen width, then it sounds like bash is not aware of the correct screen width for some reason. We'd probably need more information about your setup in order to figure it out, such as cygcheck -svr output. Are you using the current version of bash? Are you using CMD.EXE or rxvt or something else? What's the value of $TERM? Does it work correctly if you resize the console after it's been started (by dragging the edges with the mouse)? Do you have anything nonstandard in your startup files? 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/