mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-05-17 22:46:32 +02:00
removing the window title when quitting
This commit is contained in:
parent
80fb6a66ab
commit
3430d33aeb
5
h-m-m
5
h-m-m
|
@ -315,6 +315,7 @@ function shutdown()
|
|||
."\033[?25h" // enabling the text cursor
|
||||
;
|
||||
system("stty sane");
|
||||
change_window_title('');
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -3008,11 +3009,11 @@ function monitor_key_presses(&$mm)
|
|||
}
|
||||
|
||||
// }}}
|
||||
// {{{ main
|
||||
// {{{ change window title
|
||||
|
||||
function change_window_title($title)
|
||||
{
|
||||
echo "\033]2;h-m-m -- ".str_replace('.hmm','',basename($title))."\007";
|
||||
echo "\033]2;".( $title == '' ? ' ' : 'h-m-m -- '.str_replace('.hmm','',basename($title)) )."\007";
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue