! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
cant set terminal title with escape sequence
Status:
RESOLVED: FIXED
Product:
Xfce4-terminal
Component:
General

Comments

Description Alexander Butenko 2016-07-25 11:03:28 CEST
Hello,

Sorry to bomb you with bugreports, but I got one more problem with git version.
Since long time ago i were using xtitle function to set tab titles
xtitle ()
{
    [ "${TERM:0:5}" == "xterm" ] || return 
    [ -z "$1" ] && title="`hostname`:$LOGNAME" || title="$1"
    echo -en "\033]0;$title\007"
}

Since git version function stopped to work. 
Interesting thing that PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}:${PWD}\007"' still works
Comment 1 Alexander Butenko 2016-07-25 11:07:52 CEST
sorry, its was related to change from TERM to xterm256-color.
Comment 2 Igor editbugs 2016-07-25 11:24:53 CEST
No, the bug reports are fine, please don't stop ;)

I'm wondering why $TERM is not working for you. Does not the following print "yes"?
$ [ "${TERM:0:5}" == "xterm" ] && echo yes
Comment 3 Alexander Butenko 2016-07-25 11:28:59 CEST
that was a fixed version :) Original were $TERM == 'xterm'.
i were testing by running "xtitle test" manually, and that were not working while my original wrapper function worked just fine.  Not sure why is that, but I believe this  is not terminal related problem.

ssh ()
{
    SSHAPP=`which ssh`
    ARGS=$@
    xtitle "ssh $ARGS"
    $SSHAPP $ARGS
}

Bug #12727

Reported by:
Alexander Butenko
Reported on: 2016-07-25
Last modified on: 2016-07-25

People

Assignee:
Nick Schermer
CC List:
1 user

Version

Version:
unspecified

Attachments

Additional information