]> ncurses.scripts.mit.edu Git - ncurses.git/blobdiff - ncurses/curses.priv.h
ncurses 6.0 - patch 20170422
[ncurses.git] / ncurses / curses.priv.h
index fe17d45cc7f7ff2e598a868722e37539be67a8d1..abe2139d42a6947a0f93d4599c86c4f31f11855d 100644 (file)
@@ -34,7 +34,7 @@
  ****************************************************************************/
 
 /*
  ****************************************************************************/
 
 /*
- * $Id: curses.priv.h,v 1.570 2017/04/12 00:50:57 tom Exp $
+ * $Id: curses.priv.h,v 1.572 2017/04/20 09:05:57 tom Exp $
  *
  *     curses.priv.h
  *
  *
  *     curses.priv.h
  *
@@ -787,6 +787,16 @@ typedef struct {
 
 #define TGETENT_MAX 4
 
 
 #define TGETENT_MAX 4
 
+/*
+ * When converting from terminfo to termcap, check for cases where we can trim
+ * octal escapes down to 2-character form.  It is useful for terminfo format
+ * also, but not as important.
+ */
+#define MAX_TC_FIXUPS  10
+#define MIN_TC_FIXUPS  4
+
+#define isoctal(c) ((c) >= '0' && (c) <= '7')
+
 /*
  * State of tparm().
  */
 /*
  * State of tparm().
  */