comp.lang.ada
 help / color / mirror / Atom feed
* Ada package for handling ANSI Standard (X3.64)
@ 2018-02-16 23:47 Shark8
  2018-02-17  8:54 ` Jeffrey R. Carter
  0 siblings, 1 reply; 4+ messages in thread
From: Shark8 @ 2018-02-16 23:47 UTC (permalink / raw)


I've looked around and haven't been able to find any X3.64 library/bindings for Ada, does anyone know of any? -- I *think* ISO-2022 library/bindings might work, but I'd have to double-check on that.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ada package for handling ANSI Standard (X3.64)
  2018-02-16 23:47 Ada package for handling ANSI Standard (X3.64) Shark8
@ 2018-02-17  8:54 ` Jeffrey R. Carter
  2018-02-17 11:17   ` briot.emmanuel
  2018-02-17 18:19   ` Shark8
  0 siblings, 2 replies; 4+ messages in thread
From: Jeffrey R. Carter @ 2018-02-17  8:54 UTC (permalink / raw)


On 02/17/2018 12:47 AM, Shark8 wrote:
> I've looked around and haven't been able to find any X3.64 library/bindings for Ada, does anyone know of any? -- I *think* ISO-2022 library/bindings might work, but I'd have to double-check on that.

There's a partial implementation in PragmARC.Ansi_Tty_Control; additional 
sequences are easy to add.

https://github.com/jrcarter/PragmARC

-- 
Jeff Carter
"Pray that there's intelligent life somewhere up in
space, 'cause there's bugger all down here on earth."
Monty Python's Meaning of Life
61

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ada package for handling ANSI Standard (X3.64)
  2018-02-17  8:54 ` Jeffrey R. Carter
@ 2018-02-17 11:17   ` briot.emmanuel
  2018-02-17 18:19   ` Shark8
  1 sibling, 0 replies; 4+ messages in thread
From: briot.emmanuel @ 2018-02-17 11:17 UTC (permalink / raw)


Also GNATCOLL.Terminal will let you output colored text (including on Windows where by default the terminal does not support ANSI escape sequences).

To interpret those sequences, there is a package in GPS (widgets/src/gtkada-terminal.c) that provides a GtkAda text viewer. Perhaps it could be moved outside of GPS (it wasn't tricky to write, but now it is able to interact with vim, for instance, which is not bad)

Emmanuel

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Ada package for handling ANSI Standard (X3.64)
  2018-02-17  8:54 ` Jeffrey R. Carter
  2018-02-17 11:17   ` briot.emmanuel
@ 2018-02-17 18:19   ` Shark8
  1 sibling, 0 replies; 4+ messages in thread
From: Shark8 @ 2018-02-17 18:19 UTC (permalink / raw)


On Saturday, February 17, 2018 at 1:54:49 AM UTC-7, Jeffrey R. Carter wrote:
> On 02/17/2018 12:47 AM, Shark8 wrote:
> > I've looked around and haven't been able to find any X3.64 library/bindings for Ada, does anyone know of any? -- I *think* ISO-2022 library/bindings might work, but I'd have to double-check on that.
> 
> There's a partial implementation in PragmARC.Ansi_Tty_Control; additional 
> sequences are easy to add.
> 
> https://github.com/jrcarter/PragmARC


Thank you. I'll look into it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-02-17 18:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-16 23:47 Ada package for handling ANSI Standard (X3.64) Shark8
2018-02-17  8:54 ` Jeffrey R. Carter
2018-02-17 11:17   ` briot.emmanuel
2018-02-17 18:19   ` Shark8

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox