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:
parent
e7ddff61dc
commit
3561ff4d97
@ -288,7 +288,7 @@ _init(const int disable_tls, char *log_level)
|
|||||||
static void
|
static void
|
||||||
_shutdown(void)
|
_shutdown(void)
|
||||||
{
|
{
|
||||||
ui_clear_win_title();
|
ui_goodbye_title();
|
||||||
ui_close_all_wins();
|
ui_close_all_wins();
|
||||||
jabber_disconnect();
|
jabber_disconnect();
|
||||||
jabber_shutdown();
|
jabber_shutdown();
|
||||||
|
@ -2256,6 +2256,12 @@ ui_clear_win_title(void)
|
|||||||
printf("%c]0;%c", '\033', '\007');
|
printf("%c]0;%c", '\033', '\007');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ui_goodbye_title(void)
|
||||||
|
{
|
||||||
|
printf("%c]0;Thanks for using Profanity%c", '\033', '\007');
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
ui_statusbar_new(const int win)
|
ui_statusbar_new(const int win)
|
||||||
{
|
{
|
||||||
|
@ -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_recipient_error(const char * const recipient, const char * const err_msg);
|
||||||
void ui_handle_error(const char * const err_msg);
|
void ui_handle_error(const char * const err_msg);
|
||||||
void ui_clear_win_title(void);
|
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_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(const char * const roomjid, DataForm *form);
|
||||||
void ui_handle_room_configuration_form_error(const char * const roomjid, const char * const message);
|
void ui_handle_room_configuration_form_error(const char * const roomjid, const char * const message);
|
||||||
|
Loading…
Reference in New Issue
Block a user