This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: exiting vim changes background colour of console


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]