summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
Diffstat (limited to 'term.h')
-rw-r--r--term.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/term.h b/term.h
index a32cbffc..46c41da3 100644
--- a/term.h
+++ b/term.h
@@ -27,6 +27,12 @@
__BEGIN_DECLS
+enum termenc {
+ TERMENC_ASCII,
+ TERMENC_LATIN1,
+ TERMENC_UTF8
+};
+
struct termp {
size_t rmargin; /* Current right margin. */
size_t maxrmargin; /* Max right margin. */
@@ -45,6 +51,7 @@ struct termp {
#define TERMP_BOLD (1 << 8) /* Styles... */
#define TERMP_UNDER (1 << 9)
char *buf; /* Output buffer. */
+ enum termenc enc; /* Type of encoding. */
void *symtab; /* Encoded-symbol table. */
};