diff options
author | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-05 09:49:38 +0800 |
---|---|---|
committer | piaip <piaip@63ad8ddf-47c3-0310-b6dd-a9e9d9715204> | 2005-07-05 09:49:38 +0800 |
commit | 31ed8afffa6499e1165960785961ae94db393ead (patch) | |
tree | 5dee6c8cac632be5b1222b7be1ba9dae505528c5 /mbbsd | |
parent | a843183f13dcaddeb5447bccbfb3b173c76361d2 (diff) | |
download | pttbbs-31ed8afffa6499e1165960785961ae94db393ead.tar pttbbs-31ed8afffa6499e1165960785961ae94db393ead.tar.gz pttbbs-31ed8afffa6499e1165960785961ae94db393ead.tar.bz2 pttbbs-31ed8afffa6499e1165960785961ae94db393ead.tar.lz pttbbs-31ed8afffa6499e1165960785961ae94db393ead.tar.xz pttbbs-31ed8afffa6499e1165960785961ae94db393ead.tar.zst pttbbs-31ed8afffa6499e1165960785961ae94db393ead.zip |
try to solve ^[[B (move down)
git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2893 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'mbbsd')
-rw-r--r-- | mbbsd/pmore.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mbbsd/pmore.c b/mbbsd/pmore.c index 4906e59a..dc70f29e 100644 --- a/mbbsd/pmore.c +++ b/mbbsd/pmore.c @@ -919,6 +919,7 @@ mf_display() const int headerw = MFDISP_DBCS_HEADERWIDTH(t_columns-1); const int dispw = headerw - (t_columns - headerw < 2); const int maxcol = dispw - 1; + int newline_default = MFDISP_NEWLINE_CLEAR; if(mf.wraplines || mf.trunclines) MFDISP_DIRTY(); // we can't scroll with wrapped lines. @@ -984,7 +985,7 @@ mf_display() while (lines < MFDISP_PAGE) { int inAnsi = 0; - int newline = MFDISP_NEWLINE_CLEAR; + int newline = newline_default; int predicted_linewidth = -1; int xprefix = mf.xpos; @@ -1188,7 +1189,7 @@ mf_display() #else // some user cannot live without this. // make them happy. - newline = MFDISP_NEWLINE_MOVE; + newline_default = newline = MFDISP_NEWLINE_MOVE; #endif outc(c); break; |