diff options
author | ache <ache@FreeBSD.org> | 1996-05-02 21:47:50 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-05-02 21:47:50 +0000 |
commit | cca5f23bae57052bbff2d98dba9734902c955b18 (patch) | |
tree | abba71d70ea1264919a95b662756647e976760fb /sys/dev | |
parent | 6c18050917054a70229893798c308d2d7d924c35 (diff) | |
download | FreeBSD-src-cca5f23bae57052bbff2d98dba9734902c955b18.zip FreeBSD-src-cca5f23bae57052bbff2d98dba9734902c955b18.tar.gz |
Fix ^[[1K (clear from beginning of line to cursor) and
^[[2K (clear whole line), they not work _initially_
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/syscons/syscons.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index 962aa9a..d95ec3d 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -25,7 +25,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: syscons.c,v 1.145 1996/04/26 06:45:41 sos Exp $ + * $Id: syscons.c,v 1.146 1996/05/01 03:58:21 bde Exp $ */ #include "sc.h" @@ -1551,14 +1551,14 @@ scan_esc(scr_stat *scp, u_char c) break; case 1: /* clear from beginning of line to cursor */ fillw(scp->term.cur_color | scr_map[0x20], - scp->cursor_pos - (scp->xsize - scp->xpos), - (scp->xsize - scp->xpos) + 1); + scp->cursor_pos - scp->xpos, + scp->xpos + 1); mark_for_update(scp, scp->ypos * scp->xsize); mark_for_update(scp, scp->cursor_pos - scp->scr_buf); break; case 2: /* clear entire line */ fillw(scp->term.cur_color | scr_map[0x20], - scp->cursor_pos - (scp->xsize - scp->xpos), + scp->cursor_pos - scp->xpos, scp->xsize); mark_for_update(scp, scp->ypos * scp->xsize); mark_for_update(scp, (scp->ypos + 1) * scp->xsize); |