Bug 129382 - Multi-line prompt clutters console.
Multi-line prompt clutters console.
Product: Fedora
Classification: Fedora
Component: bash (Show other bugs)
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Tim Waugh
Ben Levenson
Depends On:
  Show dependency treegraph
Reported: 2004-08-07 07:58 EDT by Santtu Lakkala
Modified: 2007-11-30 17:10 EST (History)
0 users

See Also:
Fixed In Version: 3.0-3
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-08-09 06:47:53 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Santtu Lakkala 2004-08-07 07:58:30 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (compatible; HornyPorny 1.0)

Description of problem:
The bundled readline handles multiline prompts in a non-working way.
When typing in command, it wraps the line at the wrong position, it
seem to calculate wrong value for the length of the last line of the
prompt, and the result it gets depends on all the other rows of the
prompt. Combined with colours, and their control codes, the output
gets totally clobbered.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. PS1="foo\nbar"
2. insert enough text to fill the line

Actual Results:  The line wraps 2 characters before the end of the line.

Expected Results:  The line should've wrapped exactly at the end.

Additional info:

If use ^V^J instead of \n, the line wraps 1 character before the end.
Comment 1 Tim Waugh 2004-08-09 06:47:53 EDT
Fixed in bash-3.0-3.

Note You need to log in before you can comment on or make changes to this bug.