bug-bash
[Top][All Lists]
Advanced

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

Re: Screen Corruption when browsing Command History with Custom Prompt


From: Chet Ramey
Subject: Re: Screen Corruption when browsing Command History with Custom Prompt
Date: Tue, 09 Sep 2008 09:49:09 -0400
User-agent: Thunderbird 2.0.0.16 (Macintosh/20080707)

Ashley Wilson wrote:

Repeat-By:
        
        Set a custom prompt using the PS1 variable as follows:

                PS1="\n\e[0;31m\u: \w\n# \e[m"
        
        Then, browse command history using up/down keys.

As the documentation states, you need to bracket sequences of non-printing
characters in prompt strings with the \[ and \] escape sequences.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer

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]