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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:1cc9:: with SMTP id c192-v6mr3342004ioc.120.1531964470746; Wed, 18 Jul 2018 18:41:10 -0700 (PDT) X-Received: by 2002:aca:eb15:: with SMTP id j21-v6mr1642243oih.6.1531964470622; Wed, 18 Jul 2018 18:41:10 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder4.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g2-v6no199128itf.0!news-out.google.com!k71-v6ni1184itk.0!nntp.google.com!d7-v6no213047itj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 18 Jul 2018 18:41:10 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=71.209.154.211; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG NNTP-Posting-Host: 71.209.154.211 References: <95d4a3bb-8b17-4979-b60c-b9d6e3ff666f@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: How to run a GNAT program without starting a terminal session From: Jerry Injection-Date: Thu, 19 Jul 2018 01:41:10 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:53899 Date: 2018-07-18T18:41:10-07:00 List-Id: On Tuesday, July 17, 2018 at 11:27:14 PM UTC-7, Jeffrey R. Carter wrote: > On 07/17/2018 11:10 PM, Jerry wrote: > > On Tuesday, July 17, 2018 at 9:20:58 AM UTC-7, Jeffrey R. Carter wrote: > >> > >> I don't know how much MacOS is like Linux, but with the latter, if I c= reate a > >> menu entry for my program, there's a check box "Run in terminal". If I= leave > >> that unchecked, I don't get a terminal window. > >=20 > > This sounds interesting but I think I'm missing some context. What do y= ou mean by "create a menu entry for my program" and where is the mentioned = check box? Are you referring to GPS? If so, what switch does GPS change to = make this happen? >=20 > No, this is part of the Linux desktop. In my case, I'm running Xubuntu. T= he task=20 > bar (by default at the top of the screen) has a menu button that opens a = menu=20 > that lets you run programs. You can edit the menu, adding and removing me= nu=20 > items. Existing menu items may be modified. The "Run in terminal" check b= ox is=20 > available when adding and editing menu items. >=20 > The menu items are technically "Launchers", things that launch programs. = I think=20 > you can also have launchers not in the menu, such as on the desktop, but = I've=20 > never used that. >=20 > Xubuntu uses the XFCE desktop; other flavors of Linux use other desktops,= but=20 > most have something similar. Since MacOS, like Linux, is Yet Another Vers= ion of=20 > Unix (YAVU) with a graphical desktop, it probably has something similar. >=20 > --=20 > Jeff Carter > "When Bell Labs were invited to evaluate C against the DoD requirements > [for Ada], they said that there was no chance of C meeting the > requirements of readability, safety, etc. for which we were striving, > and that it should not even be on the list of evaluated languages." > William Whitaker > 116 Thank you for that explanation. macOS has a dock to which you can drag appl= ication files or document files or whatever, which sounds like a similar fe= ature. However there is no option to tell an Ada executable to not use the = terminal. The macOS file manager, called "Finder," identifies the executabl= e as "Unix executable" and defaults the parent application as Terminal.app= , the macOS terminal program. That parent can be changed but the weird thin= g is the OS treats it as a file to be opened by another program. I can't se= e how to get around this. So whether I double-click the icon or launch it f= rom the dock (the same thing, really), it opens the terminal. Also, when I = tried to embed the Ada executable in an Applescript, it appeared to run (wa= iting the noted length of time specified by the Beep() commands) but nothin= g actually happened--no beeps to be heard. Jerry