Hi there

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

"""
[EMAIL PROTECTED]:~$ echo $PROMPT_COMMAND
echo -ne "[EMAIL PROTECTED]:${PWD/#$HOME/~}\033\\
[EMAIL PROTECTED]:${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):

[EMAIL PROTECTED]:~/zope/Zope-2.9.7-final/lib/python/ZODB/FileStorage$ ls
FileStorag.py

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 [EMAIL PROTECTED]:[EMAIL PROTECTED]:~
instead of:
 19 [EMAIL PROTECTED]:~

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

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


_______________________________________________
screen-users mailing list
screen-users@gnu.org
http://lists.gnu.org/mailman/listinfo/screen-users

Reply via email to