Ticket #421 (closed enhancement: duplicate)
mc is overwriting/writing current window title with actual path
Reported by: | tonke | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | mc-core | Version: | |
Keywords: | faq | Cc: | |
Blocked By: | Blocking: | ||
Branch state: | Votes for changeset: |
Description
mc is always overwriting the window title of the active used shell like konsole or putty with the active path. So far this is nice but i would really dream of an very useful enhancement.
I am using a little script and aliases which can set my title:
alias title='/usr/local/bin/set_title.sh $@'
alias whereami='/usr/local/bin/set_title.sh whoami@hostname -f'
/usr/local/bin/set_title.sh
#!/bin/bash
#----script to set window title
echo -ne "\033]0;$@\007"
printf "\e]2;$*\a" is also possible.
additional i sometimes use something like this:
"while true; do /usr/local/bin/set_title.sh whoami@hostname -f; sleep 1; done &"
but allways doing something in mc this is overwriten.
it is very useful to know to which user@machine the active window belongs when multiple windows/shells are open.
so it would be an great enhancement to add this "where- and whoami" function in front of the "active path" function from mc.
cause i am not a C programmer it would be very nice if someone would tell me where and how to change the source code.
a friend of mine just found "Options-Layout-Xterm window title"
so far for me it is fine with disabling "Xterm window title" but if eventually you find this could be a useful additionally enhancement i am posting this ticket.
eventually something like "user@hostname mc leftpath rightpath" and setting back to user@hostname when quitting mc would be great.
hope i set the right ticket parameter.
Related stuff is #29, #192