using stls should not enable new CAPAs
[apps/madmutt.git] / lib-ui / curses.h
index c059336..cab58af 100644 (file)
@@ -37,11 +37,7 @@ void mutt_curs_set (int);
 #endif
 
 event_t mutt_getch (void);
 #endif
 
 event_t mutt_getch (void);
-#ifndef waddnwstr
-int waddwch(WINDOW *win, wchar_t w);
-#else
 #define waddwch(win, w)  waddnwstr(win, &(w), 1)
 #define waddwch(win, w)  waddnwstr(win, &(w), 1)
-#endif
 
 void curses_initialize(void);
 void curses_install(void);
 
 void curses_initialize(void);
 void curses_install(void);
@@ -78,6 +74,17 @@ enum {
   MT_COLOR_MAX
 };
 
   MT_COLOR_MAX
 };
 
+/* flags for mutt_get_field() */
+#define  M_ALIAS       (1<<0)  /* do alias "completion" by calling up the alias-menu */
+#define  M_FILE        (1<<1)  /* do file completion */
+#define  M_EFILE       (1<<2)  /* do file completion, plus incoming folders */
+#define  M_CMD         (1<<3)  /* do completion on previous word */
+#define  M_PASS        (1<<4)  /* password mode (no echo) */
+#define  M_CLEAR       (1<<5)  /* clear input if printable character is pressed */
+#define  M_COMMAND     (1<<6)  /* do command completion */
+#define  M_PATTERN     (1<<7)  /* pattern mode - only used for history classes */
+#define  M_LASTFOLDER  (1<<8)  /* last-folder mode - hack hack hack */
+
 typedef struct color_line {
   regex_t rx;
   char *pattern;
 typedef struct color_line {
   regex_t rx;
   char *pattern;