bug-bash
[Top][All Lists]
Advanced

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

Length of prompt is not correctly calculated if ansi colors are used


From: Markus Gaugusch
Subject: Length of prompt is not correctly calculated if ansi colors are used
Date: Wed, 16 Oct 2002 22:36:23 +0200 (CEST)

Configuration Information [Automatically generated, do not change]:
Machine: i586
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05b
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i586' 
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i586-suse-linux' -DCONF_VENDOR='suse' 
-DSHELL -DHAVE_CONFIG_H  -I.  -I. -I./include -I./lib  -O2 -march=i586 
-mcpu=i686 -fmessage-length=0 -D_GNU_SOURCE -Wall -pipe -g
uname output: Linux tweety 2.4.19 #16 Tue Oct 8 09:53:08 CEST 2002 i686 unknown
Machine Type: i586-suse-linux

Bash Version: 2.05b
Patch Level: 0
Release Status: release

Description:
Hi,
I'm using a customized bash prompt:
PS1='`date +%H:%M:%S` \033[1;address@hidden:\w>\033[0m'
But with very long path names the prompt overwrites itself instead of
continuing in the next line. Also if the path is even longer, I see parts
of the escape sequences (0m) on the screen but can't reproduce this at
the moment.
Editing of long commands is also a real pain - the lines are totally
destroyed in that case (commandline longer than terminal width).
I'm using precompiled bash from SuSE 8.1, btw.

kind regards
Markus Gaugusch






reply via email to

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