typo
[apps/madmutt.git] / xterm.h
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 #ifndef MUTT_XTERM_H
7 #define MUTT_XTERM_H
8
9 #include <lib-lib/str.h>
10 #include <stdio.h>
11
12 /* sets the current xterm's title */
13 static inline void mutt_xterm_set_title(const char *title) {
14     printf("\033]2;%s\007", NONULL(title));
15     fflush(stdout);
16 }
17
18 /* sets the current xterm's icon */
19 static inline void mutt_xterm_set_icon(const char *name) {
20     printf("\033]1;%s\007", NONULL(name));
21     fflush(stdout);
22 }
23
24 #endif /* !MUTT_XTERM_H */