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: border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Problem with output using Ada.Text_IO.Put Date: Sun, 20 Jul 2014 11:36:20 +0100 Organization: A noiseless patient Spider Message-ID: References: <6d5e2fff-e397-4c75-a3c9-3a7825d00752@googlegroups.com> <66d3f30d-2a21-45e7-ad9b-ddc43d74fe8c@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: mx05.eternal-september.org; posting-host="5cbec41b82bafb9ba55107f02585e18b"; logging-data="3462"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19zCE7L6mFjqwAe6P7j8RBgzhAvK7ruJ0c=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:sQomGkZPN2Q1clQrmvW8eqSrGhA= sha1:eFgC4/FrV3tcFDqbP3RFs9Zt528= Xref: number.nntp.dca.giganews.com comp.lang.ada:187724 Date: 2014-07-20T11:36:20+01:00 List-Id: junior learning ADA writes: > If I run the program in an external terminal, launched through GPS, > then It works properly. Except that the terminal closes automatically, > I don't see the result of my program. I can't try this directly, because I'm running GPS GPL 2014 on Mac OS X (Mavericks) without Quartz (good for AdaCore!) and so I have no xterm. A bit of googling led me to [1]; look at the second answer (use -hold). In GPS, Edit > Preferences > External Command > Execute command, change "xterm -e" to "xterm -hold -e". Good luck! [1] http://superuser.com/questions/363614/leave-xterm-open-after-task-is-complete