diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-07 02:14:09 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-06-07 02:14:09 +0000 |
commit | 13dededd58fd94c0507d28f08661caa187f9d989 (patch) | |
tree | caaea1e74e6ec6d16298a1071845a03be99075a0 /term.h | |
parent | 51dbcefc64890d499c9774c7fc75ddfc3fa3cda0 (diff) | |
download | mandoc-13dededd58fd94c0507d28f08661caa187f9d989.tar.gz mandoc-13dededd58fd94c0507d28f08661caa187f9d989.tar.zst mandoc-13dededd58fd94c0507d28f08661caa187f9d989.zip |
The \h escape sequence provides another method for moving backwards,
and after that, previously written output gets overwritten, but
overwriting with blanks does *not* erase previously written content.
Yes, manual pages exist that are crazy enough to rely on that...
Diffstat (limited to 'term.h')
-rw-r--r-- | term.h | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $Id: term.h,v 1.123 2017/06/04 22:44:15 schwarze Exp $ */ +/* $Id: term.h,v 1.124 2017/06/07 02:14:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011-2015, 2017 Ingo Schwarze <schwarze@openbsd.org> @@ -62,7 +62,8 @@ struct termp { size_t maxrmargin; /* Max right margin. */ size_t maxcols; /* Max size of buf. */ size_t offset; /* Margin offest. */ - size_t col; /* Bytes in buf. */ + size_t col; /* Byte position in buf. */ + size_t lastcol; /* Bytes in buf. */ size_t viscol; /* Chars on current line. */ size_t trailspace; /* See termp_flushln(). */ size_t minbl; /* Minimum blanks before next field. */ |