comp.lang.ada
 help / color / mirror / Atom feed
From: nickroberts@ukf.net (Nick Roberts)
Subject: Re: Ada Characters?
Date: Tue, 05 Mar 2002 20:58:46 GMT
Date: 2002-03-05T20:58:46+00:00	[thread overview]
Message-ID: <3c852dab.11556759@news.cis.dfn.de> (raw)
In-Reply-To: zzvf8.21529$TB2.103216@rwcrnsc52.ops.asp.att.net

On Thu, 28 Feb 2002 19:30:39 GMT, Wannabe h4x0r <chris@dont.spam.me>
strongly typed:

>This usually works fine. All I have to do is use a loop to however many
>lines my terminal will support in order to page the output on screen.

I feel sure I can get away with providing a couple of hints. First, it is
not necessary or advisable to deal with control codes: use Get_Line and
New_Line. Second, you may (or may not) wish to detect End_of_Page, and
perhaps stop displaying lines in the current 'frame' when encountering one.

For the sake of clean programming (at least), I suggest two text buffers
are kept: one for the file name, and one for buffering lines of text as
they are read in. Two other variables should be kept, integers, containing
the actual length of the string in each text buffer.

-- 
Nick Roberts



  parent reply	other threads:[~2002-03-05 20:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-28  2:07 Ada Characters? Wannabe h4x0r
2002-02-28  2:28 ` Jim Rogers
2002-02-28  2:37 ` sk
2002-02-28 13:16 ` Georg Bauhaus
2002-02-28 19:30   ` Wannabe h4x0r
2002-03-01 10:50     ` Georg Bauhaus
2002-03-05 20:58     ` Nick Roberts [this message]
2002-03-06  1:45       ` Wannabe h4x0r
2002-02-28 22:54 ` Jeffrey Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox