summaryrefslogtreecommitdiffstatshomepage
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2009-03-19 16:17:27 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2009-03-19 16:17:27 +0000
commite81807680a9a78e4658f5e00ffc42de9da9eb19d (patch)
tree4f622609bf14b9b052004d8220c5fab112105709 /term.h
parente1e06ec7dbe31f799c04be32aad9756e45b294bb (diff)
downloadmandoc-e81807680a9a78e4658f5e00ffc42de9da9eb19d.tar.gz
mandoc-e81807680a9a78e4658f5e00ffc42de9da9eb19d.tar.zst
mandoc-e81807680a9a78e4658f5e00ffc42de9da9eb19d.zip
Split mdocterm.c -> main.c terminal.c.
Abstracted output with -T selector (default ascii). Name change: mdocterm -> mandoc. Re-imported tree with -Ttree.
Diffstat (limited to 'term.h')
-rw-r--r--term.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/term.h b/term.h
index 14112bd7..ac3699a1 100644
--- a/term.h
+++ b/term.h
@@ -1,4 +1,4 @@
-/* $Id: term.h,v 1.27 2009/03/19 11:49:00 kristaps Exp $ */
+/* $Id: term.h,v 1.28 2009/03/19 16:17:27 kristaps Exp $ */
/*
* Copyright (c) 2008 Kristaps Dzonsons <kristaps@kth.se>
*
@@ -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. */
};