PROMPT_COMMAND for screen

View: New views
2 Messages — Rating Filter:   Alert me  

PROMPT_COMMAND for screen

by Jean Jordaan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi there

This works fine on some Ubuntu and Debian (4.0) machines:

    PROMPT_COMMAND='echo -ne
"\033_${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\134\033k${USER}@${HOSTNAME%%.*}:${PWD/$HOME/~}\033\134"'

However on a Debian GNU/Linux 5.0 machine my prompt looks like this:

134134jean@web2:~

What are those "134" sequences doing in there?

Regards,
--
jean                                              . .. .... //\\\oo///\\


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

Parent Message unknown Re: PROMPT_COMMAND for screen

by Jean Jordaan :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Joe

> I imagine they're not getting interpreted as octal values.  Try changing \134 in the string to \0134.

Thank you! Here's a virtual beer for you:

        [=]
        | |
        }@{
       /   \
       :___;
       |&&&|
       |&&&|
       |---|
 jgs   '---'

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


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