Ticket #421 (closed enhancement: duplicate)

Opened 15 years ago

Last modified 14 years ago

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.

Change History

comment:1 Changed 15 years ago by slyfox

Related stuff is #29, #192

comment:2 Changed 15 years ago by andrew_b

  • Keywords window title removed

comment:3 Changed 15 years ago by slavazanko

  • Status changed from new to closed
  • Keywords faq added
  • Resolution set to duplicate

I think, totally this ticket duplicate for #192

For disabling update of xterm title, change parameter into ~/.mc/ini file:

[Layout]
xterm_title=0

comment:4 Changed 15 years ago by slavazanko

  • Version 4.6.2 deleted
  • Milestone 4.7 deleted
Note: See TracTickets for help on using tickets.