From 955d8c0b01f8bcb2337da16b09f839e0f9cfd8b6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Wed, 7 Jun 2017 02:14:09 +0000 Subject: 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... --- term.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'term.h') diff --git a/term.h b/term.h index a4dbdf42..fa51d633 100644 --- a/term.h +++ b/term.h @@ -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. */ -- cgit