From owner-freebsd-questions Fri Jun 19 03:45:26 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA12526 for freebsd-questions-outgoing; Fri, 19 Jun 1998 03:45:26 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from raven.ravenbrook.com (root@gateway.ravenbrook.com [194.217.250.209]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA12521 for ; Fri, 19 Jun 1998 03:45:16 -0700 (PDT) (envelope-from nb@ravenbrook.com) Received: from raven.ravenbrook.com (nb@gateway.ravenbrook.com [194.217.250.209]) by raven.ravenbrook.com (8.8.7/8.8.7) with ESMTP id LAA06432; Fri, 19 Jun 1998 11:44:47 +0100 (BST) (envelope-from nb@raven.ravenbrook.com) From: Nick Barnes To: Doug White cc: questions@FreeBSD.ORG Subject: Re: How do I find out the current vidcontrol settings? In-reply-to: Your message of "Fri, 12 Jun 1998 01:13:32 PDT." Date: Fri, 19 Jun 1998 11:44:46 +0100 Message-ID: <6429.898253086@raven.ravenbrook.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 1998-06-12 08:13:32 UT, Doug White writes: > On Mon, 8 Jun 1998, Nick Barnes wrote: > > > At 1998-06-05 22:24:58 UT, Doug White writes: > > > > > On Fri, 5 Jun 1998, Nick Barnes wrote: > > > > > > > Is there any way to discover the current the current video driver > > > > settings? There ought to be a vidcontrol -a (or similar), c.f. stty. > > > > > > What do you want to know? > > > > I want to discover the colours and the cursor appearance, in a shell > > script. This isn't a very important application, but it strikes me as > > a general failing in this tool, and maybe in the underlying ioctls > > which vidcontrol uses. Also those ioctl's don't seem to covered in > > the man pages. > > I didn't know vidcontrol toyed with that. I think the console supports > ANSI color, so why not use that? How can I use it to discover the current settings? For instance, is it possible to switch to some particular vidcontrol mode (e.g. white-on-black 80x25 normal cursor), and then return to the previous settings? This is the sort of thing I am interested in doing. If the underlying ioctls were documented I might stand a chance.... Nick B To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message