projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
generalize the idea of tokens a bit more, don't restrict it to the rfc822
[apps/madmutt.git]
/
xterm.h
diff --git
a/xterm.h
b/xterm.h
index
0e8f970
..
31b153e
100644
(file)
--- a/
xterm.h
+++ b/
xterm.h
@@
-6,10
+6,19
@@
#ifndef MUTT_XTERM_H
#define MUTT_XTERM_H
#ifndef MUTT_XTERM_H
#define MUTT_XTERM_H
+#include <lib-lib/str.h>
+#include <stdio.h>
+
/* sets the current xterm's title */
/* sets the current xterm's title */
-void mutt_xterm_set_title(const char *title);
+static inline void mutt_xterm_set_title(const char *title) {
+ printf("\033]2;%s\007", NONULL(title));
+ fflush(stdout);
+}
/* sets the current xterm's icon */
/* sets the current xterm's icon */
-void mutt_xterm_set_icon(const char *name);
+static inline void mutt_xterm_set_icon(const char *name) {
+ printf("\033]1;%s\007", NONULL(name));
+ fflush(stdout);
+}
#endif /* !MUTT_XTERM_H */
#endif /* !MUTT_XTERM_H */