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

Terminal title not restored on exit #135

Open
dweymouth opened this issue May 13, 2014 · 3 comments
Open

Terminal title not restored on exit #135

dweymouth opened this issue May 13, 2014 · 3 comments

Comments

@dweymouth
Copy link
Contributor

When exiting cmus, the terminal title is not restored to its original value (before starting cmus). Bug is present on mate-terminal, xfce4-terminal, and terminator; likely present on other emulators.

@flyingmutant
Copy link
Member

Quick googling does not find a way to do this in a simple and portable way — solutions welcome! However, on OS X, both Terminal.app and iTerm work fine.

Edit: https://stackoverflow.com/questions/3232655/can-i-get-terminal-title-or-otherwise-restore-old-one might contain xterm-only variant:

#!/bin/sh
/bin/echo -ne '\033[22;0t'  # Save title on stack
/bin/echo -ne "\033]0;$(date)\007"
sleep 1
/bin/echo -ne '\033[23;0t'  # Restore title from stack

@morganwatch
Copy link

The only way I found was to run 'top -u', find the PID number, and type 'kill ####'
Update: type in 'ps -ax | grep cmus', kill the longest running.

@amangrewal
Copy link
Contributor

I think setting the title to a blank string would be better behavior than the current situation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants