From 31ed8afffa6499e1165960785961ae94db393ead Mon Sep 17 00:00:00 2001 From: piaip Date: Tue, 5 Jul 2005 01:49:38 +0000 Subject: try to solve ^[[B (move down) git-svn-id: http://opensvn.csie.org/pttbbs/trunk/pttbbs@2893 63ad8ddf-47c3-0310-b6dd-a9e9d9715204 --- mbbsd/pmore.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mbbsd/pmore.c') 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; -- cgit v1.2.3