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,LOTS_OF_MONEY 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: Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?) Date: Tue, 7 Aug 2018 17:31:25 -0500 Organization: JSA Research & Innovation Message-ID: References: <810948b7-1370-4c0d-aaf3-ed66b7dfbba5@googlegroups.com> Injection-Date: Tue, 7 Aug 2018 22:31:26 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="22369"; 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; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:54088 Date: 2018-08-07T17:31:25-05:00 List-Id: "Per Sandberg" wrote in message news:FS9aD.1212605$Vv2.679376@fx06.am4... ... > Yes these source-code libraries are strongly associated with GNAT, but > most of the code is compilable with "any" ada-12 compiler without change > and they are battle proven so whey not use them instead of reinventing the > wheel. (1) There aren't any other full Ada-2012 compilers, so this is an empty statement. Portable Ada code has to be in Ada 2005 at most. (2) Code that is truly portable has to be have been compiled with multiple Ada compilers. Every Ada compiler has bugs, and some of those bugs include allowing too much. (Experience is that around 20% of new ACATS tests for existing features fail on existing compilers; that seems pretty constant regardless of whose compiler you are talking about. Errors of omission are extremely difficult to detect.) You can't really know if you've used some feature that isn't supposed to be legal until you've at least tried the code on other compilers. You also can't easily see if you've unintentionally used compiler-specific stuff. Most of the GNAT libraries I've looked at are full of 'Img and 'Unrestricted_Access and similar non-Ada things. (3) I personally only care about things that will compile with Janus/Ada (90% of what I write starts there), and it is (intentionally) weird enough that nothing much will work. For instance, Integer is 16-bit on Janus/Ada, and that seems to break about 100% of outside code I try on it. Randy.