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 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: How to run a GNAT program without starting a terminal session Date: Thu, 19 Jul 2018 18:50:23 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <7461ada5-9bc3-43f5-98b0-b2930d9145bc@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 19 Jul 2018 16:50:23 -0000 (UTC) Injection-Info: h2725194.stratoserver.net; posting-host="c8eecfb07540a0d7c5873beac5758ac0"; logging-data="11705"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/3m1FjOXyHWy+bVShXGw4+K5z5bivrJQg=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 Cancel-Lock: sha1:cC1MLVXoVa6bYh4eTJQu/5+XUwE= In-Reply-To: Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:53911 Date: 2018-07-19T18:50:23+02:00 List-Id: On 07/19/2018 08:59 AM, Jerry wrote: > > Sort-of-bottom-line: Calling the Ada executable in Applescript or Automator without invoking a terminal will allow "say" and probably "afplay" to work but not ASCII bell . ASCII bell works when executing Ada from a terminal and also "say" and probably "afplay". Since you're sending BEL to standard output, you need a standard output to send it to that responds to a BEL as you desire. When you run a program without a terminal, standard output is usually sent to a bit bucket. If you want to use BEL and get a sound, you'll need a terminal. If you don't want a terminal, you'll have to use something other than BEL, like afplay. -- Jeff Carter "They name the boy Jonathan Ralph Starkwell, after Virgil's mother." Take the Money and Run 141