From owner-freebsd-bugs Mon Aug 10 11:40:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA15158 for freebsd-bugs-outgoing; Mon, 10 Aug 1998 11:40:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA15142 for ; Mon, 10 Aug 1998 11:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.8.8/8.8.5) id LAA13098; Mon, 10 Aug 1998 11:40:00 -0700 (PDT) Received: from birdland.rhein-neckar.de (birdland.rhein-neckar.de [193.197.88.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA14431 for ; Mon, 10 Aug 1998 11:32:41 -0700 (PDT) (envelope-from naddy@bigeye.rhein-neckar.de) Received: from mips.rhein-neckar.de (uucp@localhost) by birdland.rhein-neckar.de (8.8.7/8.8.3) with bsmtp id UAA27269 for FreeBSD-gnats-submit@freebsd.org; Mon, 10 Aug 1998 20:32:17 +0200 (MET DST) Received: from bigeye.rhein-neckar.de ([193.197.88.35]) by mips.rhein-neckar.de with esmtp id m0z5w4k-000WySC (Debian Smail-3.2.0.101 1997-Dec-17 #2); Mon, 10 Aug 1998 19:49:42 +0200 (CEST) Received: (from naddy@localhost) by bigeye.rhein-neckar.de (8.8.8/8.8.8) id TAA02863; Mon, 10 Aug 1998 19:50:07 +0200 (CEST) (envelope-from naddy) Message-Id: <199808101750.TAA02863@bigeye.rhein-neckar.de> Date: Mon, 10 Aug 1998 19:50:07 +0200 (CEST) From: Christian Weisgerber Reply-To: naddy@mips.rhein-neckar.de To: FreeBSD-gnats-submit@FreeBSD.ORG X-Send-Pr-Version: 3.2 Subject: kern/7559: pcvt treats DEL as a printable character Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 7559 >Category: kern >Synopsis: pcvt treats DEL as a printable character >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 10 11:40:00 PDT 1998 >Last-Modified: >Originator: Christian Weisgerber >Organization: >Release: FreeBSD 2.2.7-STABLE i386 >Environment: pcvt VT220-compatible console driver. >Description: The pcvt console driver outputs a glyph for the ASCII DEL (0x7F) character. This differs from the behavior of an actual DEC VT220 terminal which treats DEL as a non-printable no-op control character. >How-To-Repeat: >Fix: --- /sys/i386/isa/pcvt/pcvt_out.c.orig Fri Mar 7 09:58:26 1997 +++ /sys/i386/isa/pcvt/pcvt_out.c Mon Aug 10 16:12:49 1998 @@ -178,10 +178,10 @@ if(svsp->sevenbit) ch &= 0x7f; - if((ch <= 0x1f) && (svsp->transparent == 0)) + if(((ch <= 0x1f) || (ch == 0x7f)) && (svsp->transparent == 0)) { - /* always process control-chars in the range 0x00..0x1f !!! */ + /* always process control-chars in the range 0x00..0x1f, 0x7f !!! */ if(svsp->dis_fnc) { @@ -323,6 +323,7 @@ case 0x1d: /* GS */ case 0x1e: /* RS */ case 0x1f: /* US */ + case 0x7f: /* DEL */ break; } } @@ -330,7 +331,8 @@ else { - /* char range 0x20...0xff processing depends on current state */ + /* char range 0x20...0x7e, 0x80...0xff processing */ + /* depends on current state */ switch(svsp->state) { @@ -1884,7 +1886,7 @@ * partial HP 2392 ANSI mode Emulator * ================================== * - * this part tooks over the emulation of some escape sequences + * this part takes over the emulation of some escape sequences * needed to handle the function key labels * * They are modeled after the corresponding escape sequences >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message