Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using screen tab title does not change #698

Open
Overtorment opened this issue Dec 26, 2022 · 3 comments · May be fixed by #838
Open

When using screen tab title does not change #698

Overtorment opened this issue Dec 26, 2022 · 3 comments · May be fixed by #838

Comments

@Overtorment
Copy link

What Happened?

Typically using screen on my localhost and on all servers.
Nor tab title not window title doesnt change when using screen on localhost or on any servers (using mosh btw, not ssh)

Steps to Reproduce

run screen .
see screenshot:

image

Expected Behavior

tab title & window title to resemble whats going on in a tab in screen. or at least show a hostname where its happening (if possible with mosh)

OS Version

6.x (Odin)

Software Version

Latest release (I have run all updates)

Log Output

No response

Hardware Info

No response

@Marukesu
Copy link
Contributor

elementary terminal uses VTE, that by itself, uses XTerm Title Escape Sequence to change the window title. The Arch Linux wiki has some instructions to set it using screen.

The tab title is always the current running directory of the shell.

@Overtorment
Copy link
Author

thanks for the link! i was able to make window title change with the following .screenrc config lines:


backtick 1 5 5 true
termcapinfo rxvt* 'hs:ts=\E]2;:fs=\007:ds=\E]2;\007'
hardstatus string "%H (%n: %t)"
caption string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%d/%m/%Y %{W}%c%{g}]'
caption always

unfortunately, tab title always stays the directory name prior to running screen

image

@jeremypw jeremypw changed the title When using screen tab title and window title does not change When using screen tab title does not change Jan 1, 2025
@jeremypw
Copy link
Collaborator

jeremypw commented Jan 1, 2025

As you have solved the window title issue, I have changed the description of the issue to just the tab label. It is not clear how Terminal can access the information you need to be shown, at least without very specific fixes for the screen process which is unlikely to be done. Suggestion welcome. At the moment it shows the basename of the current working directory of the shell in which screen was invoked. This is unchanged by the foreground process. The most that easily could be done is to change it to the name of the foreground process.

@jeremypw jeremypw linked a pull request Jan 2, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants