From owner-freebsd-hackers Tue Sep 26 5:55:10 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mailgate.rz.uni-karlsruhe.de (mailgate.rz.uni-karlsruhe.de [129.13.64.97]) by hub.freebsd.org (Postfix) with ESMTP id 9942E37B424 for ; Tue, 26 Sep 2000 05:55:02 -0700 (PDT) Received: from rzstud1.rz.uni-karlsruhe.de (rzstud1.rz.uni-karlsruhe.de [129.13.197.1]) by mailgate.rz.uni-karlsruhe.de with esmtp (Exim 3.16 #1) id 13duGC-0000mf-00; Tue, 26 Sep 2000 14:55:00 +0200 Received: from un1i by rzstud1.rz.uni-karlsruhe.de with local (Exim 2.12 #1) id 13duGE-0006C8-00; Tue, 26 Sep 2000 14:55:02 +0200 From: Philipp Mergenthaler To: roam@orbitel.bg, freebsd-hackers@FreeBSD.ORG Subject: Re: virtual console 'snapshot'? X-Newsgroups: list.freebsd-hackers In-Reply-To: <20000923011753.A15311@ringwraith.office1.bg> User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (HP-UX/B.11.00 (9000/800)) Message-Id: Date: Tue, 26 Sep 2000 14:55:02 +0200 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, In article <20000923011753.A15311@ringwraith.office1.bg> you wrote: > Is there anything like Linux's /dev/vcs* in FreeBSD? That is, some way > to obtain the complete view of a virtual console - characters, attributes, > everything? I've written a module which implements something like this - for every console, there's a device where you can read that console's content or scrollback buffer (selectable per #define). It's still very crude, though. For example the output routine may need work. (Right now it renders similar to man(1), i.e. "more /dev/ttyvbuf0" shows kernel messages in bold.) Also, it doesn't take a "snapshot" which means that reading a buffer while there's output on that console may give a garbled view. You can find it here: http://www.uni-karlsruhe.de/~un1i/freebsd/misc/ttyvbuf.tgz I've written this on FreeBSD-current but I think it'll also work on 4.x. Maybe it is of some use to you. Bye, Philipp -- http://www.uni-karlsruhe.de/~un1i/ (,.) \\\00 ) \= ) cc_|\_,^ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message