From nobody  Sat Jan 16 02:54:12 1999
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id CAA00550;
          Sat, 16 Jan 1999 02:54:12 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199901161054.CAA00550@hub.freebsd.org>
Date: Sat, 16 Jan 1999 02:54:12 -0800 (PST)
From: kei@nanet.co.jp
To: freebsd-gnats-submit@freebsd.org
Subject: /usr/share/examples/libvgl/demo looks like to break virtual console.
X-Send-Pr-Version: www-1.0

>Number:         9524
>Category:       misc
>Synopsis:       /usr/share/examples/libvgl/demo looks like to break virtual console.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 16 03:00:01 PST 1999
>Closed-Date:    Sat Aug 21 20:31:32 PDT 1999
>Last-Modified:  Sat Aug 21 20:31:51 PDT 1999
>Originator:     Katusyuki 'kei' Maeda
>Release:        2.2.8-RELEASE
>Organization:
Nagasaki Netowrk Service Co,.Ltd.
>Environment:
FreeBSD batten.nanet.co.jp 2.2.8-STABLE FreeBSD 2.2.8-STABLE #0: Wed Jan  6 18:56:10 JST 1999     kei@batten.nanet.co.jp:/usr/src/sys/compile/BATTEN  i386
>Description:
When after run any program which using libvgl, virtual console does not work well.
>How-To-Repeat:
#cd /usr/share/example/libvgl
#make
#./demo
It works fine. But after that we can't use virtual console.
>Fix:
Index: keyboard.c
===================================================================
RCS file: /usr/ncvs/src/lib/libvgl/keyboard.c,v
retrieving revision 1.1
diff -r1.1 keyboard.c
78c78
<   if (VGLKeyboardMode != -1)
---
>   if (VGLKeyboardMode != -1) {
80c80,81
<   tcsetattr(0, TCSANOW, &VGLKeyboardTty);
---
>     tcsetattr(0, TCSANOW, &VGLKeyboardTty);
>   }

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: yokota 
State-Changed-When: Sat Aug 21 20:31:32 PDT 1999 
State-Changed-Why:  
Fixed in -CURRENT. Thanks. 
>Unformatted:
