From owner-freebsd-hackers Mon Oct 9 15:15:06 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA26053 for hackers-outgoing; Mon, 9 Oct 1995 15:15:06 -0700 Received: from irz301.inf.tu-dresden.de (irz301.inf.tu-dresden.de [141.76.1.11]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id PAA26038 for ; Mon, 9 Oct 1995 15:15:00 -0700 Received: from sax.sax.de by irz301.inf.tu-dresden.de (8.6.12/8.6.12-s1) with ESMTP id XAA19470; Mon, 9 Oct 1995 23:14:22 +0100 Received: by sax.sax.de (8.6.11/8.6.12-s1) with UUCP id XAA05397; Mon, 9 Oct 1995 23:14:21 +0100 Received: (from j@localhost) by uriah.heep.sax.de (8.6.12/8.6.9) id XAA00728; Mon, 9 Oct 1995 23:13:50 +0100 From: J Wunsch Message-Id: <199510092213.XAA00728@uriah.heep.sax.de> Subject: Re: direct acces to the text screen memory To: didier@aida.org (Didier Derny) Date: Mon, 9 Oct 1995 23:13:50 +0100 (MET) Cc: freebsd-hackers@freebsd.org (FreeBSD hackers) Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch) In-Reply-To: from "Didier Derny" at Oct 9, 95 08:55:01 pm X-Phone: +49-351-2012 669 X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Length: 609 Sender: owner-hackers@freebsd.org Precedence: bulk As Didier Derny wrote: > > I dont know how to use mmap to map the screen text. Simply mmap() a descriptor pointing to a vty device. Anyway, this advantage has not only several drawbacks, it does also require a bunch of extra handling to cover all potential external influences (VT switch requests, different VT sizes, hot-key or externally triggered VT size switching, program suspend/continue by signal). Honestly, stick with curses instead. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)