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!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!io.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: how to read status of current_output Date: Wed, 6 Jun 2018 15:28:04 -0500 Organization: JSA Research & Innovation Message-ID: References: <8d88b7fa-3939-43d5-9de3-e16eee656a15@googlegroups.com> <81876d1e-5b36-40fb-89a4-57d9b1d10662@googlegroups.com> Injection-Date: Wed, 6 Jun 2018 20:28:05 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="25654"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:52964 Date: 2018-06-06T15:28:04-05:00 List-Id: wrote in message news:81876d1e-5b36-40fb-89a4-57d9b1d10662@googlegroups.com... > On Wednesday, June 6, 2018 at 1:01:51 PM UTC+2, Marius Amado-Alves wrote: >> Status = Name ?!?!? > > name (current_output) returns the absolute path and the file name where > the > output data goes. Something like /home/mike/tmp/dummy.txt. It is not > exactly > what I was looking for but, however it solves my problem. > The interesting question is: What does name (current_output) return if the > current_output is the standard_output ? Under Linux/UNIX one would expect > something like /dev/tty... But what under Windows ? I don't think there is a standard name, but every Ada compiler ought to use something. Janus/Ada gives them device names STI:, STO:, and ERR:. I've also seen them given unix-like device paths. So your compare above ought to work. Randy.