From owner-freebsd-bugs Thu Feb 19 03:28:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA27405 for freebsd-bugs-outgoing; Thu, 19 Feb 1998 03:28:08 -0800 (PST) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from nessie.ethz.ch (dapor@nessie.ethz.ch [129.132.71.52]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id DAA27394 for ; Thu, 19 Feb 1998 03:28:03 -0800 (PST) (envelope-from dapor@swill.org) Received: (from dapor@localhost) by nessie.ethz.ch (8.6.10/8.6.12) id MAA08696 for freebsd-bugs@freebsd.org; Thu, 19 Feb 1998 12:27:56 +0100 From: Carlo Dapor Message-Id: <199802191127.MAA08696@nessie.ethz.ch> Subject: Inconsistencies with PCVT To: freebsd-bugs@FreeBSD.ORG Date: Thu, 19 Feb 1998 12:27:55 +0100 (MET) X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dear FreeBSD bug readers The terminal emulation integrated in the kernels I build prefers pcvt over sc. Out of curiosity I checked if all the possible PCVT_* options are accepted. So this is the relevant part in the config file: options PCVT_FREEBSD=210,PCVT_SCREENSAVER=1 options PCVT_EMU_MOUSE=1,PCVT_SETCOLOR=1,PCVT_PRETTYSCRNS=1 # the two next lines choke /usr/sbin/config options PCVT_VT220KEYB=1 # does NOT work options PCVT_24LINESDEF=1 # does NOT work # the next lines are okay options PCVT_CTRL_ALT_DEL=1 options PCVT_META_ESC=1 options PCVT_NSCREENS=8 options PCVT_SCANSET=1 options PCVT_USEKBDSEC=1 The two commented lines do _NOT_ get recognized despite the fact the file /sys/i386/conf/options.i386 lists them. I also tried with ommitting the '=1'/'=8' above, still no success. A fix for now is to insert the #defines directly into opt_pcvt.h . . . I noticed further that if You enable PCVT_EMU_MOUSE, building the kernel fails because pcvt_kbd.o holds a reference to gettime (struct *timeval). FreeBSD offers gettimeofday (struct *timeval, struct *timezone). The diff below fixes the problem. Ciao, derweil, -- Carlo *** pcvt_kbd.c.orig Mon Feb 9 17:40:34 1998 --- pcvt_kbd.c Wed Feb 18 07:22:35 1998 *************** *** 1556,1562 **** --- 1556,1566 ---- * happen "recently", i.e. before * less than half a second */ + #ifdef __FreeBSD__ + gettimeofday(&now, NULL); + #else gettime(&now); + #endif timevalsub(&now, &mouse.lastmove); mouse.lastmove = time; accel = (now.tv_sec == 0 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message