From owner-freebsd-bugs Wed Apr 4 7:30:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2399637B726 for ; Wed, 4 Apr 2001 07:30:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f34EU1Q95348; Wed, 4 Apr 2001 07:30:01 -0700 (PDT) (envelope-from gnats) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.53]) by hub.freebsd.org (Postfix) with ESMTP id 3D71C37B719 for ; Wed, 4 Apr 2001 07:29:52 -0700 (PDT) (envelope-from nivit@libero.it) Received: from numeria (151.29.243.210) by smtp3.libero.it (5.5.025) id 3AB4BB53003AB74E for FreeBSD-gnats-submit@freebsd.org; Wed, 4 Apr 2001 16:29:50 +0200 Received: (qmail 651 invoked by uid 1002); 4 Apr 2001 12:51:51 -0000 Message-Id: <20010404125151.650.qmail@numeria> Date: 4 Apr 2001 12:51:51 -0000 From: nivit@libero.it (Nicola Vitale) Reply-To: nivit@libero.it To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: i386/26347: [pcvt] incorrect screen number in HP mode Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 26347 >Category: i386 >Synopsis: [pcvt] incorrect screen number in HP mode >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Apr 04 07:30:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Nicola Vitale >Release: FreeBSD 4.2-RELEASE i386 >Organization: >Environment: 1) The kernel configuration includes device vt0 at isa? options PCVT_NSCREENS=12 2) /etc/ttys includes /dev/ttyva "/usr/libexec/getty Pc" vt220 secure /dev/ttyvb "/usr/libexec/getty Pc" vt220 secure >Description: In HP mode the screen number at the bottom right corner is not correct for screens /dev/ttyva, /dev/ttyvb, etc. that is: for /dev/ttyv0 you see [0] ... for /dev/ttyva you see [0] instead of [a] for /dev/ttyvb you see [1] instead of [b] ... >How-To-Repeat: For example: % scon -H /dev/ttyva then press CTRL-ALT-F11 >Fix: Apply this patch to src/sys/i386/isa/pcvt/pcvt_out.c: --- pcvt_out.c.orig Thu Dec 30 17:17:10 1999 +++ pcvt_out.c Mon Feb 19 15:56:43 2001 @@ -1912 +1912 @@ - + svsp->maxcol - 2) = user_attr | (current_video_screen + '0'); + + svsp->maxcol - 2) = user_attr | (current_video_screen + (current_video_screen < 10 ? '0' : ('a' - 10))); >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message