[Top][All Lists]

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

Re: Help please: PROMPT_COMMAND on gnome-terminal

From: Jean Jordaan
Subject: Re: Help please: PROMPT_COMMAND on gnome-terminal
Date: Wed, 11 Jul 2007 15:54:06 +0300

Hi there

My PROMPT_COMMAND is still funky with screen & gnome-terminal. This
almost works:

address@hidden:~$ echo $PROMPT_COMMAND
echo -ne "address@hidden:${PWD/#$HOME/~}\033\\

Unfortunately that space at the beginning screws things up, because
bash doesn't count it (that's the space in " jean", caused by "\\ ").
That causes things like the following (look at the end of the line):

address@hidden:~/zope/Zope-2.9.7-final/lib/python/ZODB/FileStorage$ ls

I.e. if the displayed line is longer than the terminal width, a
character is not displayed ("FileStorag" instead of "FileStorage").

If I remove the "\\ ", then screen's window list shows
 19 address@hidden:address@hidden:~
instead of:
 19 address@hidden:~

I couldn't figure out what to use instead of "\\ ". I tried "\134" but
that gives me:
where the 134 isn't counted as part of the line.

jean                                              . .. .... //\\\oo///\\

reply via email to

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