delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/11/27/10:08:44

From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Buffering text...
Date: 27 Nov 2000 14:51:37 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 22
Message-ID: <8vtsdp$pj9$1@nets3.rz.RWTH-Aachen.DE>
References: <YIgT5.7336$vA4 DOT 123021 AT news6-win DOT server DOT ntlworld DOT com> <8vlls9$8fn$1 AT nets3 DOT rz DOT RWTH-Aachen DOT DE> <x3LT5.10413$vA4 DOT 175317 AT news6-win DOT server DOT ntlworld DOT com>
NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 975336697 26217 137.226.32.75 (27 Nov 2000 14:51:37 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 27 Nov 2000 14:51:37 GMT
Originator: broeker@
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Graham Reeds <grahamr AT dtn DOT ntl DOT com> wrote:
> From: "Hans-Bernhard Broeker" <broeker AT physik DOT rwth-aachen DOT de>

>> Even then, clrscr() is a waste of time by a factor of 4 or so. At 50%
>> of content having to be replaced, clrscr() plus re-write of the whole
>> stuff causes 4 times the amount of characters to be written to screen
>> as would be truly necessary.

> Is there a way of repositioning the write position to the individual lines
> on the screen without disturbing the rest of the text? 

Of course there is. Look up gotoxy() in the libc docs, or
ScreenSetCursor().  You'll want to have a glance over the whole
'Console I/O' set of function to learn what's there, I think

	info libc func conio



-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019