mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-19 13:46:21 +00:00
Merge remote-tracking branch 'incertia/exit-title'
Conflicts: src/command/command.c src/config/preferences.c src/config/preferences.h
This commit is contained in:
@@ -969,6 +969,11 @@ cons_titlebar_setting(void)
|
||||
} else {
|
||||
cons_show("Titlebar show (/titlebar) : OFF");
|
||||
}
|
||||
if (prefs_get_boolean(PREF_TITLEBAR_GOODBYE)) {
|
||||
cons_show("Titlebar goodbye (/titlebar) : ON");
|
||||
} else {
|
||||
cons_show("Titlebar goodbye (/titlebar) : OFF");
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
||||
@@ -2301,6 +2301,13 @@ ui_clear_win_title(void)
|
||||
printf("%c]0;%c", '\033', '\007');
|
||||
}
|
||||
|
||||
void
|
||||
ui_goodbye_title(void)
|
||||
{
|
||||
int result = system("/bin/echo -ne \"\033]0;Thanks for using Profanity\007\"");
|
||||
if(result == -1) log_error("Error printing title on shutdown");
|
||||
}
|
||||
|
||||
void
|
||||
ui_statusbar_new(const int win)
|
||||
{
|
||||
|
||||
@@ -191,6 +191,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);
|
||||
|
||||
Reference in New Issue
Block a user