comp.lang.ada
 help / color / mirror / Atom feed
From: localhost@example.org
Subject: Re: Anyone see a problem in 5.7 ncurses Ada?
Date: Thu, 10 Mar 2011 06:14:45 +0000 (UTC)
Date: 2011-03-10T06:14:45+00:00	[thread overview]
Message-ID: <slrningr2m.27q.localhost@example.org> (raw)
In-Reply-To: 431bc7ac-07d3-4ccc-abb6-18091cb5a0db@s18g2000prg.googlegroups.com

> I confirm your observation on the Ada binding of the version 5.7 of
> ncurses. The numbers of lines and columns are 1 higher than the actual
> ones. I don't know if this is relevant but Get_Size gives the number
> of lines and columns of a window in the terminal. It seems so that the
> standard_window is a bit greater than its terminal.

Hi thanks for your help. I used xwininfo and the terminal is definitely
24x80. I also tested rxvt in addition to xterm in case it was the terminal,
same problem. In all cases get_size is returning 25x81 which is 2 more than
it should be (it should return 23x79, because the numbers are supposed to be
zero-relative). 

> Here after is the source code of Get_Size. It could be that the
> problem comes from the value of Offset_XY.

Thanks, I'll have a look when I get a chance, maybe we can dump that
field. In the meantime I'm just adjusting the values I get from get_size in
my programs to get past the issue.



      parent reply	other threads:[~2011-03-10  6:14 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
2011-03-10 21:38         ` Jeffrey Carter
2011-03-10  6:14   ` localhost [this message]
replies disabled

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