Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Feb 1998 12:27:55 +0100 (MET)
From:      Carlo Dapor <dapor@swill.org>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Inconsistencies with PCVT
Message-ID:  <199802191127.MAA08696@nessie.ethz.ch>

next in thread | raw e-mail | index | archive | help
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



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