From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?)
Date: Tue, 7 Aug 2018 17:36:25 -0500
Date: 2018-08-07T17:36:25-05:00 [thread overview]
Message-ID: <pkd6t9$qbh$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: pkblh9$b97$1@gioia.aioe.org
"Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
news:pkblh9$b97$1@gioia.aioe.org...
> On 2018-08-07 00:15, Randy Brukardt wrote:
>> <briot.emmanuel@gmail.com> wrote in message
>> news:810948b7-1370-4c0d-aaf3-ed66b7dfbba5@googlegroups.com...
>>
>>> 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...
>>
>> And they don't all support the same escape sequences, either. But most
>> important is that Windows almost never supports escape sequences, so any
>> code that you want to be reasonably portable has to avoid them.
>
> I didn't test it, because the idea to use character terminal in XXI
> century is beyond silly, but I heard that Windows 10 cmd has them enabled.
> It took less than 3 decades to do, but they finally managed it! On older
> versions ANSI.SYS driver is required.
Really? Why?
ANSI.SYS was depreciated some decades ago; my understanding was that it was
unsupported on Windows 7 and 8. Going back the dinosaur age makes little
sense (and causes security issues).
There's really no good reason to use TUIs anyway; either write a proper GUI
or use a browser for your interface (HTML is no harder to write than escape
sequences). If that's overkill, then basic Put_Line is enough.
Randy.
next prev parent reply other threads:[~2018-08-07 22:36 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-04 1:37 Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?) Hazz
2018-08-04 1:59 ` Lucretia
2018-08-04 2:21 ` Hazz
2018-08-04 9:07 ` Jeffrey R. Carter
2018-08-06 6:35 ` briot.emmanuel
2018-08-06 22:15 ` Randy Brukardt
2018-08-07 5:12 ` Per Sandberg
2018-08-07 22:31 ` Randy Brukardt
2018-08-08 6:39 ` Per Sandberg
2018-08-08 17:59 ` Randy Brukardt
2018-08-08 18:28 ` Dmitry A. Kazakov
2018-08-08 19:23 ` Dan'l Miller
2018-08-07 8:33 ` Dmitry A. Kazakov
2018-08-07 13:59 ` Dan'l Miller
2018-08-07 22:36 ` Randy Brukardt [this message]
2018-08-09 17:08 ` G. B.
2018-08-07 0:01 ` Aurele
2018-08-12 20:56 ` Matt Borchers
2018-08-13 10:23 ` Aurele Vitali
2018-08-16 9:58 ` alby.gamper
2018-08-16 12:29 ` Aurele Vitali
2018-08-16 12:52 ` alby.gamper
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox