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: a07f3367d7,4510e62b5a1dbcfa X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b15g2000yqd.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: ada, curses and windows Date: Sat, 1 Aug 2009 16:08:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2f7249d2-e6a2-4420-862a-40e6b1a02c45@b15g2000yqd.googlegroups.com> References: NNTP-Posting-Host: 94.108.156.230 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1249168106 12151 127.0.0.1 (1 Aug 2009 23:08:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 1 Aug 2009 23:08:26 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b15g2000yqd.googlegroups.com; posting-host=94.108.156.230; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.11) Gecko/2009061208 Iceweasel/3.0.9 (Debian-3.0.9-1),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:7515 Date: 2009-08-01T16:08:22-07:00 List-Id: I wrote on comp.lang.ada: > Massimo M. wrote on comp.lang.ada: > >> i can't use windows in curses. >> they don't work, i looked for examples, but i find only too >> complicated examples. can you give me some easy examples in >> using windows in ada? > >> i used > >> winInput:=3DNew_Window(Line_Count(8),Column_Count(8),Line_Position(8),Co= lumn_Position(8)); >> box(winInput); >> refresh(winInput); > >> but no windows appears... >> if i use >> box(standard_window), the box appears. > >> thanks in advance > > The behaviour you see is correct. =A0Curses does not draw have window > borders; you have to draw the borders yourself, e.g. with a "box". > > That's what I remember from the two programs I wrote with curses back > in 1992 or so. BTW, have you considered TextTools[1,2]? It is a library on top of curses that draws the window borders for you, offers a widget set (buttons, scroll bars etc.) and even supports the mouse! [1] http://www.pegasoft.ca/tt.html [2] http://packages.qa.debian.org/libt/libtexttools.html -- Ludovic Brenta.