Comment 4 for bug 1197726

Revision history for this message
Jan Klepek (jan-klepek-gmail) wrote :

this is quite tricky,

the current way is the right way,
according to screen manual, prompt_command should look like this to set name of window:
PROMPT_COMMAND='echo -n -e "\033k\033\134"'

so, what was before was incorrect. Issue here is why when screen is invoked by byobu, it stops working, when screen is invoked directly, screen title is set correctly. So what to do next?

If ~/.bashrc contains:
PROMPT_COMMAND='echo -n -e "\033k;aa\033\134"'
Byobu shows: http://hpejakle.fedorapeople.org/byobu_1.PNG
Screen shows: http://hpejakle.fedorapeople.org/screen_1.PNG

if it contains:
PROMPT_COMMAND='echo -n -e "\033]0;aa\033\134"'
Byobu shows: http://hpejakle.fedorapeople.org/byobu_2.PNG
Screen shows: http://hpejakle.fedorapeople.org/screen_2.PNG

i have marked with red mark where the "aa" is written.