From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,48376c7ba742841e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-05 12:58:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-2-164.5800-12.telinco.NET!not-for-mail From: nickroberts@ukf.net (Nick Roberts) Newsgroups: comp.lang.ada Subject: Re: Ada Characters? Date: Tue, 05 Mar 2002 20:58:46 GMT Message-ID: <3c852dab.11556759@news.cis.dfn.de> References: NNTP-Posting-Host: ppp-2-164.5800-12.telinco.net (212.1.141.164) X-Trace: fu-berlin.de 1015361929 8215690 212.1.141.164 (16 [25716]) X-Newsreader: Forte Free Agent 1.21/32.243 Xref: archiver1.google.com comp.lang.ada:20824 Date: 2002-03-05T20:58:46+00:00 List-Id: On Thu, 28 Feb 2002 19:30:39 GMT, Wannabe h4x0r 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