Use /bin/echo for terminal window title
This commit is contained in:
@@ -2274,15 +2274,15 @@ _ui_draw_term_title(void)
|
|||||||
|
|
||||||
if (unread != 0) {
|
if (unread != 0) {
|
||||||
snprintf(new_win_title, sizeof(new_win_title),
|
snprintf(new_win_title, sizeof(new_win_title),
|
||||||
"echo -n \"%c]0;%s (%d) - %s%c\"", '\033', "Profanity",
|
"/bin/echo -n \"%c]0;%s (%d) - %s%c\"", '\033', "Profanity",
|
||||||
unread, jid, '\007');
|
unread, jid, '\007');
|
||||||
} else {
|
} else {
|
||||||
snprintf(new_win_title, sizeof(new_win_title),
|
snprintf(new_win_title, sizeof(new_win_title),
|
||||||
"echo -n \"%c]0;%s - %s%c\"", '\033', "Profanity", jid,
|
"/bin/echo -n \"%c]0;%s - %s%c\"", '\033', "Profanity", jid,
|
||||||
'\007');
|
'\007');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
snprintf(new_win_title, sizeof(new_win_title), "echo -n \"%c]0;%s%c\"", '\033',
|
snprintf(new_win_title, sizeof(new_win_title), "/bin/echo -n \"%c]0;%s%c\"", '\033',
|
||||||
"Profanity", '\007');
|
"Profanity", '\007');
|
||||||
}
|
}
|
||||||
if (g_strcmp0(win_title, new_win_title) != 0) {
|
if (g_strcmp0(win_title, new_win_title) != 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user