renames, small improvements in the private struct.
[apps/madtty.git] / madtty / madtty_priv.h
similarity index 88%
rename from madtty/roteprivate.h
rename to madtty/madtty_priv.h
index 628a993..e33902b 100644 (file)
     Copyright © 2006 Pierre Habouzit
  */
 
-#ifndef btco_ROTE_vtstate_h
-#define btco_ROTE_vtstate_h
+#ifndef MADTTY_MADTTY_PRIV_H
+#define MADTTY_MADTTY_PRIV_H
 
 #define ESEQ_BUF_SIZE 128  /* size of escape sequence buffer */
-#define MAX_CUSTOM_ES_HANDLERS 32
 
 /* Terminal private data */
 struct RoteTermPrivate_ {
-    bool escaped;              /* whether we are currently reading an
+    unsigned escaped : 1;      /* whether we are currently reading an
                                 * escape sequence */
 
-    bool graphmode;            /* whether terminal is in graphical 
+    unsigned graphmode : 1;    /* whether terminal is in graphical 
                                 * character mode or not */
 
     int scrolltop, scrollbottom;  /* current scrolling region of terminal */
@@ -48,4 +47,4 @@ struct RoteTermPrivate_ {
  * related fields in it */
 void rote_es_interpret_csi(RoteTerm *rt);
 
-#endif
+#endif /* MADTTY_MADTTY_PRIV_H */