From owner-freebsd-bugs Sat Feb 3 19:25:06 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id TAA21338 for bugs-outgoing; Sat, 3 Feb 1996 19:25:06 -0800 (PST) Received: from finland.it.earthlink.net ([206.85.92.29]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id TAA21333 Sat, 3 Feb 1996 19:25:01 -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 TAA22799; Sat, 3 Feb 1996 19:24:55 -0800 Message-Id: <199602040324.TAA22799@finland.it.earthlink.net> Comments: Authenticated sender is From: "Skip Hansen" To: freebsd-bugs@FreeBSD.ORG Date: Sat, 3 Feb 1996 18:46:22 +0000 Subject: syscons [nX bug Reply-to: shansen@earthlink.net CC: sos@FreeBSD.ORG, Larry Altneu Priority: normal X-mailer: Pegasus Mail for Windows (v2.23) Sender: owner-bugs@FreeBSD.ORG Precedence: bulk I have run into a minor syscons bug while trying to port the Crisp editor to FreeBSD. Crisp makes heavy use of the 'delete n characters' terminal escape sequence which does not seem to function correctly in FreeBSD 2.1R. I traced the problem to syscons.c's handling of the escape sequence "[nX". The following patch corrects the problem. Crisp now updates the screen nicely. diff syscons.c.org syscons.c = --- snip --- 28a29,30 > * > * 2/3/96 shansen@earthlink.net: Corrected [ n X processing. 1570c1572 < ((scp->xsize*scp->ypos) * sizeof(u_short)), n); --- > scp->xsize*scp->ypos, n); --- snip --- Skip Hansen shansen@earthlink.net