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.4 required=5.0 tests=BAYES_00,SUBJ_ALL_CAPS autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,f9642664cfbe6417 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Mon, 07 Mar 2011 15:32:27 -0600 Newsgroups: comp.lang.ada Date: Mon, 7 Mar 2011 16:32:11 -0500 From: "Peter C. Chapin" Subject: Re: ACCESS TO SYSTEM VARIABLES In-Reply-To: <6ea98f8c-33eb-4f20-a696-eb59a519b80d@n18g2000vbq.googlegroups.com> Message-ID: References: <31c9ef20-db49-4d3e-bafb-0d2a5dca7866@e9g2000vbk.googlegroups.com> <4d74c5c3$0$6878$9b4e6d93@newsspool2.arcor-online.net> <6ea98f8c-33eb-4f20-a696-eb59a519b80d@n18g2000vbq.googlegroups.com> User-Agent: Alpine 2.00 (WNT 1167 2008-08-23) X-X-Sender: pcc09070@vtc.vsc.edu@webmail.vtc.edu MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-Oc9ahK8YGrBC4xSzaR2fo368HRztQc1Bj8kvplfJA6TGIRcZjbp+dvNqjTesjCdWxUX6PlDxo6YqSBk!Dc2J+oClAD4MbR9ewoQ4Ry359i9K8wCohWdudTkDUQrR6msFzT2RTSDl0ONkCn1s6dLlpd6YBw== X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 1880 Xref: g2news2.google.com comp.lang.ada:18929 Date: 2011-03-07T16:32:11-05:00 List-Id: On Mon, 7 Mar 2011, Emile8 wrote: > It is not a very elegant solution and I should look also at how the > Ada version of ncurses manages to get the same informations. When the terminal is resized the programs running in it receive a Unix signal (SIGWINCH?). By default that signal is ignored. However, one can install a signal handler for it and then presumably call into the system (some terminal API) to ask for the new sizes. I could probably figure out how to do this in C, but I'm not familiar with how Ada on Unix deals with Unix signals. Peter