diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/libbbsutil.h | 7 | ||||
-rw-r--r-- | include/modes.h | 7 |
2 files changed, 13 insertions, 1 deletions
diff --git a/include/libbbsutil.h b/include/libbbsutil.h index a825ff28..3acebdfc 100644 --- a/include/libbbsutil.h +++ b/include/libbbsutil.h @@ -11,8 +11,13 @@ #else #define GCC_CHECK_FORMAT(a,b) #endif + + +// flags used by strip_ansi enum STRIP_FLAG { - STRIP_ALL = 0, ONLY_COLOR, NO_RELOAD + STRIP_ALL = 0, + ONLY_COLOR, // allow only colors (ESC [ .. m) + NO_RELOAD // allow all known (color+move) }; enum LOG_FLAG { LOG_CREAT = 1, diff --git a/include/modes.h b/include/modes.h index 0c79bb3c..689a2853 100644 --- a/include/modes.h +++ b/include/modes.h @@ -207,4 +207,11 @@ enum _DBCS_STATUS { #define PAGER_MODES (5) +/* stuff.c: show_file */ +#define SHOWFILE_RAW (0x00) +#define SHOWFILE_ALLOW_COLOR (0x01) // ESC [ ... m +#define SHOWFILE_ALLOW_MOVE (0x02) // ESC [ ... H +#define SHOWFILE_ALLOW_STAR (0x04) // ESC * ... +#define SHOWFILE_ALLOW_ALL (SHOWFILE_ALLOW_COLOR | SHOWFILE_ALLOW_MOVE | SHOWFILE_ALLOW_STAR) + #endif |