From shansen@finland-c.it.earthlink.net  Sun Feb  4 08:40:21 1996
Received: from finland.it.earthlink.net ([206.85.92.29])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA14350
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Feb 1996 08:40:21 -0800 (PST)
Received: from shansen.earthlink.net (shansen.earthlink.net [204.119.160.146]) by finland.it.earthlink.net (8.6.11/8.6.4) with SMTP id IAA17905 for <FreeBSD-gnats-submit@freebsd.org>; Sun, 4 Feb 1996 08:40:19 -0800
Message-Id: <199602041640.IAA17905@finland.it.earthlink.net>
Date: Sun, 4 Feb 1996 08:36:57 +0000
From: "Skip Hansen" <shansen@earthlink.net>
Reply-To: shansen@earthlink.net
To: FreeBSD-gnats-submit@freebsd.org
Subject: bug in syscons's ESC[nX processing
Comments: Authenticated sender is <shansen@mail.earthlink.net>

>Number:         994
>Category:       kern
>Synopsis:       syscons bug in ESC[nX handling (w/fix)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sos
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Feb  4 08:50:01 PST 1996
>Closed-Date:    Fri Jun 21 00:36:27 PDT 1996
>Last-Modified:  Fri Jun 21 00:37:48 PDT 1996
>Originator:     Skip Hansen
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
self
>Environment:
any using syscons console.

>Description:
Terminal escape sequence ESC[nX deletes characters from incorrect
screen position. Some applications (notably the Crisp editor) which
make heavy use of this escape seqence have unreadable screens as a
result.

>How-To-Repeat:
simple test:
printf("********\r");
printf("***%c[2X\n",0x1b);

Show display "***  ***" when run. Actually displays "********".

>Fix:
patch to syscons.c:
28a29,30
>  *
>  *  2/3/96 shansen@earthlink.net: Corrected <ESC> [ n X processing.
1570c1572
< 		  ((scp->xsize*scp->ypos) * sizeof(u_short)), n);
---
> 		  scp->xsize*scp->ypos, n);
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sos 
Responsible-Changed-By: pst 
Responsible-Changed-When: Wed Feb 7 17:51:53 PST 1996 
Responsible-Changed-Why:  
syscons 
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Fri Jun 21 00:36:27 PDT 1996 
State-Changed-Why:  

Fixed in syscons.c:1.152 

>Unformatted:
