Skip site navigation (1)Skip section navigation (2)
Date:      4 Apr 2001 12:51:51 -0000
From:      nivit@libero.it (Nicola Vitale)
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/26347: [pcvt] incorrect screen number in HP mode
Message-ID:  <20010404125151.650.qmail@numeria>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010404125151.650.qmail>