diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-09 20:21:31 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2000-04-09 20:21:31 +0000 |
commit | bf8f57b745cb150059273c7171663eba60cb6f2e (patch) | |
tree | 70eb3010c60c5c61110776c7228bad46e3442883 /sys/arch | |
parent | 53d2fd71df7b46d6258ee64b46bb0cfb343cae8c (diff) |
Put the line-wrap check back under STATE_INIT. It was causing some display
problems in some (curses?) applications, i.e., sniffit.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/i386/isa/pcvt/pcvt_out.c | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/sys/arch/i386/isa/pcvt/pcvt_out.c b/sys/arch/i386/isa/pcvt/pcvt_out.c index a0dfa0e8a6c..0b209a9d23f 100644 --- a/sys/arch/i386/isa/pcvt/pcvt_out.c +++ b/sys/arch/i386/isa/pcvt/pcvt_out.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcvt_out.c,v 1.20 2000/04/02 00:03:11 aaron Exp $ */ +/* $OpenBSD: pcvt_out.c,v 1.21 2000/04/09 20:21:30 aaron Exp $ */ /* * Copyright (c) 1992, 1995 Hellmuth Michaelis and Joerg Wunsch. @@ -352,22 +352,24 @@ sput (u_char *s, U_char kernel, int len, int page) /* char range 0x20...0xff processing depends on current state */ - if (svsp->lastchar && svsp->m_awm && svsp->lastrow == svsp->row) - { - svsp->cur_offset++; - svsp->col = 0; - svsp->lastchar = 0; - if (check_scrollback(svsp)) { - bcopy(svsp->Crtat + svsp->cur_offset - - svsp->maxcol, svsp->Scrollback + - (svsp->scr_offset * svsp->maxcol), - svsp->maxcol * CHR); - } - check_scroll(svsp); - } switch(svsp->state) { case STATE_INIT: + if (svsp->lastchar && svsp->m_awm && + (svsp->lastrow == svsp->row)) + { + svsp->cur_offset++; + svsp->col = 0; + svsp->lastchar = 0; + if (check_scrollback(svsp)) { + bcopy(svsp->Crtat + svsp->cur_offset - + svsp->maxcol, svsp->Scrollback + + (svsp->scr_offset * svsp->maxcol), + svsp->maxcol * CHR); + } + check_scroll(svsp); + } + if(svsp->irm) bcopy((svsp->Crtat + svsp->cur_offset), (svsp->Crtat + svsp->cur_offset) + 1, |