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