X-Git-Url: http://git.madism.org/?p=apps%2Fmadmutt.git;a=blobdiff_plain;f=xterm.c;fp=xterm.c;h=1b2d852460a25210cc4370890c2309ea766e30c1;hp=0000000000000000000000000000000000000000;hb=dc2c2ef1ba4d0a0f3c2552459b9f962594a3536b;hpb=58a4fd932f40cd77dbcbdc0bfd11710e0ccb5f35 diff --git a/xterm.c b/xterm.c new file mode 100644 index 0000000..1b2d852 --- /dev/null +++ b/xterm.c @@ -0,0 +1,22 @@ +/* + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. + */ +#include +#include "xterm.h" +#include "lib/str.h" + +void mutt_xterm_set_title (char *title) { + fputs ("\033]2;", stdout); + fputs (NONULL (title), stdout); + fputs ("\007", stdout); + fflush (stdout); +} + +void mutt_xterm_set_icon (char *name) { + fputs ("\033]1;", stdout); + fputs (NONULL (name), stdout); + fputs ("\007", stdout); + fflush (stdout); +}