#include <lib-ui/sidebar.h>
#include <lib-mx/mx.h>
+#include <lib-crypt/crypt.h>
#include <pop/pop.h>
#include "recvattach.h"
#include "buffy.h"
#include "thread.h"
-#include "xterm.h"
#include <imap/imap_private.h>
-#include <lib-crypt/crypt.h>
-
#ifdef USE_NNTP
-#include "nntp/nntp.h"
+#include <nntp/nntp.h>
#endif
#ifdef USE_SASL
sidebar_set_buffystats (Context);
menu->redraw &= ~REDRAW_STATUS;
if (option (OPTXTERMSETTITLES)) {
- menu_status_line (buf, sizeof (buf), menu, NONULL (XtermTitle));
- mutt_xterm_set_title (buf);
- menu_status_line (buf, sizeof (buf), menu, NONULL (XtermIcon));
- mutt_xterm_set_icon (buf);
+ menu_status_line(buf, sizeof(buf), menu, NONULL(XtermTitle));
+ printf("\033]2;%s\007", buf);
+ menu_status_line(buf, sizeof(buf), menu, NONULL(XtermIcon));
+ printf("\033]1;%s\007", buf);
+ fflush(stdout);
}
}
|| !explicit_folder) {
mutt_index_menu ();
if (option (OPTXTERMSETTITLES))
- mutt_xterm_set_title (NONULL (XtermLeave));
+ printf("\033]2;%s\007", NONULL(XtermLeave));
if (Context)
p_delete(&Context);
}
+++ /dev/null
-/*
- * 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.
- */
-#ifndef MUTT_XTERM_H
-#define MUTT_XTERM_H
-
-#include <lib-lib/lib-lib.h>
-
-/* sets the current xterm's 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 */
-static inline void mutt_xterm_set_icon(const char *name) {
- printf("\033]1;%s\007", NONULL(name));
- fflush(stdout);
-}
-
-#endif /* !MUTT_XTERM_H */