From nivit@libero.it  Wed Apr  4 07:29:52 2001
Return-Path: <nivit@libero.it>
Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.53])
	by hub.freebsd.org (Postfix) with ESMTP id 3D71C37B719
	for <FreeBSD-gnats-submit@freebsd.org>; 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
Subject: [pcvt] incorrect screen number in HP mode
X-Send-Pr-Version: 3.2

>Number:         26347
>Category:       i386
>Synopsis:       [pcvt] incorrect screen number in HP mode
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 04 07:30:00 PDT 2001
>Closed-Date:    Tue Jun 5 08:32:19 PDT 2001
>Last-Modified:  Tue Jun 05 08:33:01 PDT 2001
>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:
State-Changed-From-To: open->closed 
State-Changed-By: hm 
State-Changed-When: Tue Jun 5 08:32:19 PDT 2001 
State-Changed-Why:  
Fix committed to -current. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=26347 
>Unformatted:
