From owner-freebsd-multimedia Wed Feb 18 01:00:32 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA17717 for freebsd-multimedia-outgoing; Wed, 18 Feb 1998 01:00:32 -0800 (PST) (envelope-from owner-freebsd-multimedia@FreeBSD.ORG) Received: from holly.dons.net.au (daniel.lnk.telstra.net [139.130.137.70]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA17702 for ; Wed, 18 Feb 1998 01:00:26 -0800 (PST) (envelope-from darius@holly.dons.net.au) Received: from holly.dons.net.au (localhost.dons.net.au [127.0.0.1]) by holly.dons.net.au (8.8.8/8.8.5) with ESMTP id TAA06360 for ; Wed, 18 Feb 1998 19:33:02 +1030 (CST) Message-Id: <199802180903.TAA06360@holly.dons.net.au> To: multimedia@FreeBSD.ORG Subject: VT mangulations.. Date: Wed, 18 Feb 1998 19:33:01 +1030 From: "Daniel J. O'Connor" Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have written a program which makes a VT useable after quake has mangled it.. Its really useful when you are testing out new things :) (Of course you still need another machine to run it from, but you ca write a wrapper script to call it when quake exists.. - oh another point - don't run it when quake is, then quake will not be able to understand any keyboard events, you can fix it by doing ALT-F2, logging in(blind) then killing quake :) --- CUT HERE --- #include #include #include #include #include void main(void) { int sfd; if ((sfd = open("/dev/ttyv0", O_RDWR)) == -1) { printf("Failed to open console - %s\n", strerror(errno)); exit(5); } if (ioctl(sfd, KDSKBMODE, K_XLATE) == -1) printf("ioctl failed - %s\n", strerror(errno)); close(sfd); } --- CUT HERE --- --------------------------------------------------------------------- |Daniel O'Connor software and network engineer for Genesis Software | |http://www.gsoft.com.au | |The nice thing about standards is that there are so many of them to| |choose from. -- Andrew Tanenbaum | --------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message