From: Olivier Fredj <olivier@fredj.org>
[apps/madmutt.git] / xterm.c
1 /*
2  * This file is part of mutt-ng, see http://www.muttng.org/.
3  * It's licensed under the GNU General Public License,
4  * please see the file GPL in the top level source directory.
5  */
6 #include <stdio.h>
7 #include "xterm.h"
8 #include "lib/str.h"
9
10 void mutt_xterm_set_title (char *title) {
11   fputs ("\033]2;", stdout);
12   fputs (NONULL (title), stdout);
13   fputs ("\007", stdout);
14   fflush (stdout);
15 }
16
17 void mutt_xterm_set_icon (char *name) {
18   fputs ("\033]1;", stdout);
19   fputs (NONULL (name), stdout);
20   fputs ("\007", stdout);
21   fflush (stdout);
22 }