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 X-Received: by 2002:a24:ac14:: with SMTP id s20-v6mr6896228ite.14.1533650342126; Tue, 07 Aug 2018 06:59:02 -0700 (PDT) X-Received: by 2002:aca:c6ca:: with SMTP id w193-v6mr554512oif.1.1533650342029; Tue, 07 Aug 2018 06:59:02 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!g13-v6no570825itf.0!news-out.google.com!k71-v6ni969itk.0!nntp.google.com!g13-v6no570816itf.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 7 Aug 2018 06:59:01 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=47.185.195.62; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.195.62 References: <810948b7-1370-4c0d-aaf3-ed66b7dfbba5@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?) From: "Dan'l Miller" Injection-Date: Tue, 07 Aug 2018 13:59:02 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:54082 Date: 2018-08-07T06:59:01-07:00 List-Id: On Tuesday, August 7, 2018 at 3:33:47 AM UTC-5, Dmitry A. Kazakov wrote: > On 2018-08-07 00:15, Randy Brukardt wrote: > > Briot Emmanuel wrote in message > > news:810948b7-1370-4c0d-aaf3-ed66b7dfbba5@googlegroups.com... > >=20 > >> You can also take a look at GNATCOLL.terminal, in the GNAT > >> Components Collection. It will do colors either using ansi escape > >> sequences or, on Windows, proper system calls. In terms of > >> portability, better to think early on that not all terminals support > >> escape sequences... > >=20 > > And they don't all support the same escape sequences, either. But most > > important is that Windows almost never supports escape sequences, so an= y > > code that you want to be reasonably portable has to avoid them. >=20 > I didn't test it, because the idea to use character terminal in XXI=20 > century is beyond silly, =E2=80=A6 Conversely, on the major widely-deployed UIs/UXes {X Window, Win32, Windows= UWP, Cocoa, Cocoa Touch, Android, Java Swing} the =E2=80=A2only=E2=80=A2 t= echnology in common among all of them is terminfo/termcap-specified POSIX t= erminals for escape-sequence ChUIs in terminal windows. Some of us still a= ppreciate the ability to fire up Vi or Emacs in terminfo-/termcap-specified= ChUI mode. Indeed, some of us still appreciate the ability to use old sof= tware that isn't forcibly deprecated due to fads & fashions. (Which is wor= se? 1. Escape-sequence ChUI still working versus 2. deprecation of Display= Postcript of yesteryear or Mir nowadays, as fads & fantasies pass us by. )= And even more to the point, how much churn & vicious not-invented-here/no= t-in-my-backyard tug-of-war has Gnome and KDE (and Ubuntu's divergent UX/UI= strategy du jour) gone through in recent years for no good reason? the purported replacement for X Window 11: https://en.wikipedia.org/wiki/Mir_(software)