From root@net2.dinoex.sub.org  Sun Oct 25 09:22:20 1998
Received: from mail.dinoex.sub.org (mail.dinoex.sub.de [195.243.29.14])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA27818
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 25 Oct 1998 09:22:14 -0800 (PST)
          (envelope-from root@net2.dinoex.sub.org)
Received: (from uucp@localhost)
          by mail.dinoex.sub.org (8.9.1/8.9.1) with UUCP id SAA24083
          for FreeBSD-gnats-submit@freebsd.org; Sun, 25 Oct 1998 18:21:05 +0100 (CET)
Received: (from root@localhost)
          by net2.dinoex.sub.org (8.9.1/8.9.1) id NAA17983;
          Sun, 25 Oct 1998 13:46:00 +0100 (CET)
Message-Id: <199810251246.NAA17983@net2.dinoex.sub.org>
Date: Sun, 25 Oct 1998 13:46:00 +0100 (CET)
From: Charlie Root <root@net2.dinoex.sub.org>
Reply-To: root@net2.dinoex.sub.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: pcvt with more than 8 virtual consoles
X-Send-Pr-Version: 3.2

>Number:         8444
>Category:       kern
>Synopsis:       pcvt with more than 8 virtual consoles
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Oct 25 09:30:00 PST 1998
>Closed-Date:    Thu Dec 30 00:24:21 PST 1999
>Last-Modified:  Thu Dec 30 00:34:20 PST 1999
>Originator:     dirk.meyer@dinoex.sub.org
>Release:        FreeBSD 2.2.6-RELEASE i386
>Organization:
privat
>Environment:

	Using pcvt with more than 8 virtual consoles.

>Description:

	The F10 key is not passed trough the application.
	It may happen with less too, I can't check.
	Be pressin F10 once without any shift or meta key
	you switch to virtual console 1.

>How-To-Repeat:

	Pressing F10 in any application.
	Exmaple: you can't exit midnight-commander.

>Fix:
	
	the following patch, works fine with more than 8 pcvt's.
	maybe the code can be omitted in every case.

*** pcvt/pcvt_kbd.c	Wed Sep 10 03:23:37 1997
--- pcvt/pcvt_kbd.c.neu	Sun Aug 23 19:15:22 1998
***************
*** 2410,2419 ****
--- 2410,2421 ----
  		else
  			fkl_on(vsp);
  	}
+ #if PCVT_NSCREENS <= 8
  	else
  	{
  		do_vgapage(0);
  	}
+ #endif
  }
  
  /*---------------------------------------------------------------------------*
***************
*** 2432,2441 ****
--- 2434,2445 ----
  				sw_ufkl(vsp);
  		}
  	}
+ #if PCVT_NSCREENS <= 8
  	else
  	{
  		do_vgapage(1);
  	}
+ #endif
  }
  
  /*---------------------------------------------------------------------------*
***************
*** 2451,2460 ****
--- 2455,2466 ----
  		else if(vsp->vt_pure_mode == M_HPVT)
  			set_emulation_mode(vsp, M_PUREVT);
  	}
+ #if PCVT_NSCREENS <= 8
  	else
  	{
  		do_vgapage(2);
  	}
+ #endif
  }
  
  /*---------------------------------------------------------------------------*
***************
*** 2470,2479 ****
--- 2476,2487 ----
  		else
  			do_vgapage(current_video_screen + 1);
  	}
+ #if PCVT_NSCREENS <= 8
  	else
  	{
  		do_vgapage(3);
  	}
+ #endif
  }
  
  /*---------------------------------------------------------------------------*
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->hm 
Responsible-Changed-By: hoek 
Responsible-Changed-When: Sat Aug 21 19:32:29 PDT 1999 
Responsible-Changed-Why:  
hm is the closest person we have to a pcvt chamption. 
State-Changed-From-To: open->closed 
State-Changed-By: hm 
State-Changed-When: Thu Dec 30 00:24:21 PST 1999 
State-Changed-Why:  
The virtual consoilele switching is currently done with F9-F12 in any pcvt mode 
regardless of the number of virtual consoles configured. There is no  
relation between the setting of PCVT_NSCREENS and F9-F12. 
Anyway switching virtual screens with F9-F12 is questionable, possibly it 
should be done with ALT F9-F12 or something like this. I'll keep this 
on my todo list. 
I'll not apply this patch because PCVT_NSCREENS and virtual screen switching 
by using F9-F12 have no relation to each other. 
>Unformatted:
