From owner-freebsd-questions Thu Sep 28 13:07:47 1995 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id NAA28115 for questions-outgoing; Thu, 28 Sep 1995 13:07:47 -0700 Received: from casparc.ppp.net (casparc.ppp.net [194.64.12.35]) by freefall.freebsd.org (8.6.12/8.6.6) with SMTP id NAA28092 for ; Thu, 28 Sep 1995 13:07:06 -0700 Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0syP9d-000I0YC; Thu, 28 Sep 95 21:02 MET Received: by ernie.altona.hamburg.com (Smail3.1.29.1 #3) id m0syNaU-000013C; Thu, 28 Sep 95 19:21 MET Message-Id: From: hm@altona.hamburg.com (Hellmuth Michaelis) Subject: Re: Color on PCVT Console? To: wilson@VNET.IBM.COM (Jeff Wilson) Date: Thu, 28 Sep 1995 19:21:38 +0100 (MET) Cc: questions@freebsd.org In-Reply-To: <9509281530.AA23542@belgium.fishkill.ibm.com> from "Jeff Wilson" at Sep 28, 95 11:30:36 am Reply-To: hm@altona.hamburg.com X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 1632 Sender: owner-questions@freebsd.org Precedence: bulk >From the keyboard of Jeff Wilson: > > There was a question recently about how to get color to work. The answers > mentioned looking at vidcontrol, and ncurses. These are fine and good, but > I have a Color IBM ThinkPad which uses type 2 scan codes for its keyboard. > So, I am forced to use the PCVT console driver, since it supports type 2 > scan codes. However, vidcontrol, and ncurses colors do not work with PCVT. > > Is there any way to use color on PCVT? Vidcontrol is the syscons way of configuring syscons, it does not work for pcvt. For pcvt you have an own set of control programs, for your purposes i'd recommend you have a look at the man page for scon(1). Also i recommend having a look into the pcvt documentation to be found in the directory /usr/src/usr.sbin/pcvt/Misc/Doc. For ways of how to specify colors and what is possible, i'd like you to uudecode and gunzip the file /usr/src/usr.sbin/pcvt/demo/colors.vt.gz.uu, and then execute "cat /usr/src/usr.sbin/pcvt/demo/colors.vt". Ncurses colors do not work with pcvt because there is no standard way of specifying colors in a termcap entry available (see termcap(5)). I am too lazy to find out how ncurses wants it, but you are free to do so. There should be no problem in modeling the color additions the way it is done in cons25 and add it to the pcvt termcap entry to make ncurses support colors for pcvt. ( ... and don't forget to send me a copy :-) ) Hope this helps a bit, hellmuth -- Hellmuth Michaelis hm@altona.hamburg.com Hamburg, Europe (A)bort, (R)etry, (I)nstall BSD ?