[Top][All Lists]

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

Issues with multi-line prompts and width of shells.

From: Paul Tipper
Subject: Issues with multi-line prompts and width of shells.
Date: Mon, 6 Sep 2004 17:47:15 +0100
User-agent: Mutt/1.4.2i

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/local/share/locale' -DPACKAGE='bash' 
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib   -g -O2
uname output: Linux lain 2.4.26 #6 Mon Jun 14 19:07:27 PDT 2004 i686 unknown
Machine Type: i686-pc-linux-gnu

Bash Version: 3.0
Patch Level: 0
Release Status: release

It seems that when using multiline prompts in Bash 3.0 there is some sort of
issue with the terminal starting to wrap characters earlier, the longer the
previous lines of prompt the less width of terminal is available to type
commands in.

export PS1='123456789 123456789 123456789 123456789 123456789 123456789\n\$ '

Then just type, you should see it starting to wrap at about 20 cols in.

Unknown, tried using prompts with \n\r or \r\n in instead of just \n doesn't
seem to fix it.
Also tried using " and ' quote types around the string that doesn't seem to
work either.

Attachment: pgpJ0amoFhKpm.pgp
Description: PGP signature

reply via email to

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