From owner-freebsd-hackers Sun Oct 8 15:14:53 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA13810 for hackers-outgoing; Sun, 8 Oct 1995 15:14:53 -0700 Received: from ref.tfs.com (ref.tfs.com [140.145.254.251]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id PAA13804 for ; Sun, 8 Oct 1995 15:14:50 -0700 Received: (from julian@localhost) by ref.tfs.com (8.6.11/8.6.9) id PAA14022; Sun, 8 Oct 1995 15:14:23 -0700 From: Julian Elischer Message-Id: <199510082214.PAA14022@ref.tfs.com> Subject: Re: direct acces to the text screen memory To: didier@aida.org (Didier Derny) Date: Sun, 8 Oct 1995 15:14:22 -0700 (PDT) Cc: joerg_wunsch@uriah.heep.sax.de, hackers@freebsd.org In-Reply-To: from "Didier Derny" at Oct 8, 95 10:01:00 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Content-Length: 2036 Sender: owner-hackers@freebsd.org Precedence: bulk don't do it that way..... use curses man 3 curses it does a lot of optimisation for you it works on an 'in memory' copy of the screen and uptates the screen when asked.. the difficult part will be learning whan to ask it to do a screen dump.. (whenever you move to a differnt line?, every 10th of a second?.. you experiment) if nothing has changed, it doesn't write anything out.. if only a few things have changed, then that's all it writes.. use ncurses, and get propper function-key and cursor key support that way you can run on almost any terminal, not just the console... julian > > On Sun, 8 Oct 1995, Julian Elischer wrote: > > > > > > > As Didier Derny wrote: > > > > > > > > Is there any way to write directly in the text screen memory. > > > > > > > > I'm writing a commodore 8000 emulation and the use of ANSI sequences > > > > to write in the screen is extremely slow. > > > > for this sort of thing it starts to become attractive to run a local frame > > buffer in the program and do totoal screen updates every now and then.. > > (I guess you could say that this is what curses does..) > > > > > > There is a way (you could mmap() the frame buffer), but using > > > something like curses is strongly recommended instead. This way, your > > > emulation will automagically also run inside an xterm or on a serial > > > terminal. > > > > > > -- > > > 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. ;-) > > > > > > > > > The Commodore 8032 directly write in the screen memory. I transform > the write operation to the screen memory by an optimized ANSI sequences > everything works fine but when the Commodore scroll the screen > the entire screen update becomes very slow since it rewrite the entire > screen. > > How can I map the text screen ? > > > -- > Didier Derny > didier@aida.org > --- I boycott everything from: new zealand, australia, denmark, england > >