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-Thread: 103376,c4e4e40240a86624 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!feeder.news-service.com!94.75.214.39.MISMATCH!aioe.org!.POSTED!not-for-mail From: localhost@example.org Newsgroups: comp.lang.ada Subject: Re: Anyone see a problem in 5.7 ncurses Ada? Date: Thu, 10 Mar 2011 06:14:45 +0000 (UTC) Organization: Aioe.org NNTP Server Message-ID: References: <431bc7ac-07d3-4ccc-abb6-18091cb5a0db@s18g2000prg.googlegroups.com> NNTP-Posting-Host: EUGFoB16xwXVxMnkfdNfCw.user.speranza.aioe.org X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:18021 Date: 2011-03-10T06:14:45+00:00 List-Id: > 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.