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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.160.65 with SMTP id m1mr1741932qax.2.1365271465323; Sat, 06 Apr 2013 11:04:25 -0700 (PDT) X-Received: by 10.49.72.194 with SMTP id f2mr1322088qev.34.1365271465235; Sat, 06 Apr 2013 11:04:25 -0700 (PDT) Path: border1.nntp.dca3.giganews.com!border2.nntp.dca3.giganews.com!border4.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!news.glorb.com!t2no41665816qal.0!news-out.google.com!ef9ni8256qab.0!nntp.google.com!t2no41665815qal.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 6 Apr 2013 11:04:25 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=70.53.16.242; posting-account=cUi90woAAADTaOISowbbHM8GUD0-opJO NNTP-Posting-Host: 70.53.16.242 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to get the screen size? From: Patrick Injection-Date: Sat, 06 Apr 2013 18:04:25 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 1736 Xref: number.nntp.dca.giganews.com comp.lang.ada:180960 Date: 2013-04-06T11:04:25-07:00 List-Id: On Saturday, April 6, 2013 1:35:54 PM UTC-4, tolkamp wrote: > To make my ada application program suitable for more monitor sizes, I need the Screen Size. Where the size is the number of pixels. > > Is there a function or procedure to get the screen width and height? There are multiple ways to do this. Are you in a browser, under Ncurses or inside a GUI? You can also get this directly from X assuming your not on Windows -Patrick