comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.s.sandberg@bahnhof.se>
Subject: Re: Can Ada print coloured/styled text to the terminal? (ANSI escape sequences?)
Date: Tue, 7 Aug 2018 07:12:05 +0200
Date: 2018-08-07T07:12:05+02:00	[thread overview]
Message-ID: <FS9aD.1212605$Vv2.679376@fx06.am4> (raw)
In-Reply-To: <pkah97$6q8$1@franka.jacob-sparre.dk>



On 08/07/18 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. (If you want
> it really portable, that is to work with other Ada compileers, you have to
> avoid GNATCOLL, too, since it is GNAT-specific.)
> 
>                                                     Randy.
> 
> 
> 

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.

/P


  reply	other threads:[~2018-08-07  5:12 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 [this message]
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
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