comp.lang.ada
 help / color / mirror / Atom feed
From: jerry@jvdsys.nextjk.stuyts.nl (Jerry van Dijk)
Subject: Re: Troubles : New_Page & Get_Immediate
Date: 1997/10/18
Date: 1997-10-18T00:00:00+00:00	[thread overview]
Message-ID: <877159374.61snx@jvdsys.nextjk.stuyts.nl> (raw)
In-Reply-To: 01bcdae4$3f70ffa0$0f02000a@default


In article <01bcdae4$3f70ffa0$0f02000a@default> bjyxxl@echidna.stu.cowan.edu.au writes:

>When trying to use New_Page as in
>   New_Page;
>to simply refresh the screen in output of text to the screen all I'm
>getting is a weird symbol

As New_Page suggests, this is a printer-like command. The funny character
you are seeing is called the 'form-feed' code, instructing the printer
to move to the next page.

On some consoles, sending a form-feed will actually clear the screen,
on others it will simply display the character. On Win95 (if that is
what you are using) the latter is the case.

A very simple solution is:

   Num_Rows : constant := 25; -- number of screen rows;

   procedure Clear_Screen is
   begin
      for I in 1 .. Num_Rows loop
         New_Line;
      end loop;
   end Clear_Screen;

--

-- Jerry van Dijk | Leiden, Holland
-- Consultant     | Team Ada
-- Ordina Finance | jdijk@acm.org




  reply	other threads:[~1997-10-18  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-17  0:00 Troubles : New_Page & Get_Immediate Ray Tindall
1997-10-18  0:00 ` Jerry van Dijk [this message]
1997-10-20  0:00   ` John English
1997-10-20  0:00   ` Anonymous
1997-10-21  0:00     ` Jerry van Dijk
1997-10-18  0:00 ` Jerry van Dijk
replies disabled

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