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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?Bj=c3=b6rn_Lundin?= Newsgroups: comp.lang.ada Subject: Re: How to run a GNAT program without starting a terminal session Date: Fri, 20 Jul 2018 09:32:59 +0200 Organization: A noiseless patient Spider Message-ID: References: <8771f075-4142-45ef-b636-80d407fedd7f@googlegroups.com> <590da4a9-7afc-4b65-9a31-9beccbeed61e@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 20 Jul 2018 07:33:01 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="3f3b6f26a28b132b8e3873b455751f29"; logging-data="980"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18SrWwuWtDDxG9TW3zyAMSk" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Cancel-Lock: sha1:HAZ7DCgAdReA2ZO/sTDsqORWvfk= In-Reply-To: <590da4a9-7afc-4b65-9a31-9beccbeed61e@googlegroups.com> Content-Language: sv-FI Xref: reader02.eternal-september.org comp.lang.ada:53916 Date: 2018-07-20T09:32:59+02:00 List-Id: On 2018-07-19 22:46, Jerry wrote: >> Does it not go away once your program is finished? > Correct--it leaves an open terminal window indicated a completed session along with all the output that normally comes with a terminal session even if the user program doesn't add any. Maybe the result of some settings in my terminal preferences. In any case the program would always launch the terminal app which remains open even if I could figure out how to close each window. If you _really_ want some of it in Ada * create a bash script that runs then program. * after the program is finished, use Applescript to close the terminal something like 'tell Terminal to close' but yes, it is a bit different... There is a terminal setting to close the window if the program exited without errors. But as you say the Terminal app would still run. Unless told to close by applescript of course -- -- Björn