bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiline prompt problems with long commands


From: Chet Ramey
Subject: Re: Multiline prompt problems with long commands
Date: Tue, 04 Nov 2014 09:06:21 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 11/3/14 6:50 PM, Kamil Neczaj wrote:

> Bash Version: 4.3
> Patch Level: 30
> Release Status: release
> 
> Description:
>         When using multiline prompt and entering a long command, the part
> which doesn't fit and should be moved to a
> new line is actually move to the beginning of the same line which makes the
> command unreadable.
> 
> Repeat-By:
>         1. Set e.g. PS1="\n\[\033[01;32m\]\u@\h\[\033[01;34m\]
> \w\[\033[01;33m\]\n\n\033[01;31m\]-------------> \[\e[0m\]"
                       ^^^^^^^^^^^
                       |||||||||||

Before I look at this, why is this sequence not marked as invisible?

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]