Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15166

Re: Multi-line Prompt/PS1 wrapping oddly

From Chet Ramey <chet.ramey@case.edu>
Newsgroups gnu.bash.bug
Subject Re: Multi-line Prompt/PS1 wrapping oddly
Date 2019-07-14 15:51 -0400
Organization ITS, Case Western Reserve University
Message-ID <mailman.1317.1563133897.2688.bug-bash@gnu.org> (permalink)
References <CAHnKnK2LM2B1Dj-whwCWnaE+RaTFg+FMH-R8Rq1qcT1JzRHfDw@mail.gmail.com> <99b6e4a1-205e-f9dd-12d9-bc560d69459c@case.edu>

Show all headers | View raw


On 7/12/19 4:40 PM, Tianon Gravi wrote:

> What I've found is that if PS1 contains '\n' and the last line gets
> long enough for the cursor to be on the next line (for example, if \w
> gets too long), then typing will result in a single character being
> printed in the correct place followed by the cursor being moved to the
> next line.

Thanks for the report and the easy reproducer.

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

Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread


Thread

Re: Multi-line Prompt/PS1 wrapping oddly Chet Ramey <chet.ramey@case.edu> - 2019-07-14 15:51 -0400

csiph-web