diff options
| author | James Booth <boothj5@gmail.com> | 2015-01-12 01:12:42 +0000 |
|---|---|---|
| committer | James Booth <boothj5@gmail.com> | 2015-01-12 01:12:42 +0000 |
| commit | 0d0ed9b7ca4b9055fece7ddc4e2430b900cbb355 (patch) | |
| tree | e25b30c13981503ac96b85f6514a40eab98279b1 /src/ui | |
| parent | c64484c6ed8ab38b840786d76e986cf622d56ece (diff) | |
| parent | 22cc641905fcb6f321653a2826ef588d4cece223 (diff) | |
| download | profani-tty-0d0ed9b7ca4b9055fece7ddc4e2430b900cbb355.tar.gz | |
Merge remote-tracking branch 'incertia/exit-title'
Conflicts:
src/command/command.c
src/config/preferences.c
src/config/preferences.h
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/console.c | 5 | ||||
| -rw-r--r-- | src/ui/core.c | 7 | ||||
| -rw-r--r-- | src/ui/ui.h | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/console.c b/src/ui/console.c index e595a024..d219a175 100644 --- a/src/ui/console.c +++ b/src/ui/console.c @@ -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 diff --git a/src/ui/core.c b/src/ui/core.c index 22e7bcf1..be16dfad 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -2302,6 +2302,13 @@ ui_clear_win_title(void) } 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) { status_bar_new(win); diff --git a/src/ui/ui.h b/src/ui/ui.h index 4d64342a..32484b9e 100644 --- a/src/ui/ui.h +++ b/src/ui/ui.h @@ -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); |