summaryrefslogtreecommitdiffstats
path: root/term.h
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-11 07:23:04 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-11 07:23:04 +0000
commit4320829a9974a95546e94df94a6b70b6b4831a68 (patch)
treee3ea0982f86fbdfebf5723d37be88cb45b4fad26 /term.h
parent7172afe8498d9da876e08e39960b11f31467e9ca (diff)
downloadmandoc-4320829a9974a95546e94df94a6b70b6b4831a68.tar.gz
Teach -Tps to ignore backspace-encoding by using a one-char buffer and a
simple state machine. This paves the way for decorated text.
Diffstat (limited to 'term.h')
-rw-r--r--term.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/term.h b/term.h
index dad0a71d..9206e4ad 100644
--- a/term.h
+++ b/term.h
@@ -50,6 +50,7 @@ struct termp_ps {
size_t psmargsz; /* margin buf size */
size_t psmargcur; /* current pos in margin buf */
size_t pspage; /* current page */
+ char last; /* character buffer */
};
struct termp {