From 997138b8cf242533eca235e5bae8af08384ce7c6 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Thu, 19 Mar 2009 16:17:27 +0000 Subject: Split mdocterm.c -> main.c terminal.c. Abstracted output with -T selector (default ascii). Name change: mdocterm -> mandoc. Re-imported tree with -Ttree. --- term.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'term.h') 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. */ }; -- cgit