1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

set a nice title (instead of empty) on shutdown

This commit is contained in:
Will Song 2014-12-29 20:05:50 -06:00
parent e7ddff61dc
commit 3561ff4d97
No known key found for this signature in database
GPG Key ID: AF0CA153EA5D9C7C
3 changed files with 8 additions and 1 deletions

View File

@ -288,7 +288,7 @@ _init(const int disable_tls, char *log_level)
static void
_shutdown(void)
{
ui_clear_win_title();
ui_goodbye_title();
ui_close_all_wins();
jabber_disconnect();
jabber_shutdown();

View File

@ -2256,6 +2256,12 @@ ui_clear_win_title(void)
printf("%c]0;%c", '\033', '\007');
}
void
ui_goodbye_title(void)
{
printf("%c]0;Thanks for using Profanity%c", '\033', '\007');
}
void
ui_statusbar_new(const int win)
{

View File

@ -190,6 +190,7 @@ void ui_handle_recipient_not_found(const char * const recipient, const char * co
void ui_handle_recipient_error(const char * const recipient, const char * const err_msg);
void ui_handle_error(const char * const err_msg);
void ui_clear_win_title(void);
void ui_goodbye_title(void);
void ui_handle_room_join_error(const char * const roomjid, const char * const err);
void ui_handle_room_configuration(const char * const roomjid, DataForm *form);
void ui_handle_room_configuration_form_error(const char * const roomjid, const char * const message);