mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-01 02:42:11 +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
|
."\033[?25h" // enabling the text cursor
|
||||||
;
|
;
|
||||||
system("stty sane");
|
system("stty sane");
|
||||||
|
change_window_title('');
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3008,11 +3009,11 @@ function monitor_key_presses(&$mm)
|
||||||
}
|
}
|
||||||
|
|
||||||
// }}}
|
// }}}
|
||||||
// {{{ main
|
// {{{ change window title
|
||||||
|
|
||||||
function change_window_title($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