comp.lang.ada
 help / color / mirror / Atom feed
From: Niklas Holsti <niklas.holsti@tidorum.invalid>
Subject: Re: Anyone see a problem in 5.7 ncurses Ada?
Date: Thu, 10 Mar 2011 16:43:45 +0200
Date: 2011-03-10T16:43:45+02:00	[thread overview]
Message-ID: <8ts6d1F44vU1@mid.individual.net> (raw)
In-Reply-To: <c0e1988b-b928-4ac7-931d-daf3c21ae3e5@r19g2000prm.googlegroups.com>

Emile8 wrote:
> On 9 mar, 21:53, Jeffrey Carter <spam.jrcarter....@spam.not.acm.org>
> wrote:
>> On 03/09/2011 01:28 PM, Emile8 wrote:
>>
>>
>>
>>> procedure test1 is
>>>     NL : Line_count;
>>>     NC : Column_count;
>>> begin
>>>     init_screen;
>>>     Get_size (number_of_columns =>  NC, number_of_lines =>  NL);
>>>     put(integer(NL));
>>>     put_line("");
>> Skip_Line?
> Ok for skip_line;
>>>     put(integer(NC));

If these are operations in Ada.Text_IO, Skip_Line skips *input* lines. 
If you want to make blank *output* lines, use New_Line.

 From one who has made that mistake more than once :-)

-- 
Niklas Holsti
Tidorum Ltd
niklas holsti tidorum fi
       .      @       .



  reply	other threads:[~2011-03-10 14:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-09 18:55 Anyone see a problem in 5.7 ncurses Ada? localhost
2011-03-09 19:45 ` Anh Vo
2011-03-09 19:52   ` localhost
2011-03-09 20:00     ` Anh Vo
2011-03-09 20:02       ` localhost
2011-03-09 22:12     ` Emile8
2011-03-09 20:28 ` Emile8
2011-03-09 20:53   ` Jeffrey Carter
2011-03-09 21:42     ` Emile8
2011-03-10 14:43       ` Niklas Holsti [this message]
2011-03-10 21:38         ` Jeffrey Carter
2011-03-10  6:14   ` localhost
replies disabled

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