delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/20/03:36:44

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: <435748FA.BDE6EE75@dessent.net>
Date: Thu, 20 Oct 2005 00:36:26 -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> <Pine DOT GSO DOT 4 DOT 63 DOT 0510192020400 DOT 16245 AT slinky DOT cs DOT nyu DOT edu> <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>
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/

- Raw text -


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