REXPaint > Everything REXPaint

ANSI format does not like ubuntu terminal

(1/2) > >>

phil123456:
Hello,

I tried to print the content of my image.ans in the terminal (with "cat" command as well as dumping it in C through a UART)

and it's all scrambled in the shell

https://i.imgur.com/fmU2gzt.png

I checked the format and I see a lot of weird escape sequences (ex : ESC[7h does not appear to be standard http://ascii-table.com/ansi-escape-sequences.php)

is there a way to just export the characters and their colors ?

https://i.imgur.com/Kzj61My.png

Kyzrati:
There are many export options, you'll have to check the manual to see all the details.

As for Ubuntu, can't say if it's user error here or maybe they have a different implementation. Note that technically there is more than one .ans format out there, though the one used by REXPaint is the most common format found in the ANSI art community, for whom this export type was added.

I can't guarantee that it will work in every terminal out there. In fact, I'm sure it doesn't :P

phil123456:

--- Quote from: Kyzrati on July 30, 2020, 05:06:36 AM --- In fact, I'm sure it doesn't :P

--- End quote ---

so then what's the point ?

I'll check the options, but technicaly speaking I only need ESC[FF;BBm color escapes

Kyzrati:

--- Quote from: phil123456 on July 30, 2020, 05:37:36 AM ---so then what's the point ?

--- End quote ---
Already stated the point in the previous post: The format chosen was the one commonly used by ANSI artists (who happen to be the ones who requested the feature in the first place :P). There were never pans to add support for the numerous kinds of different terminals out there.

It's literally impossible for a single format to work everywhere, hence me knowing that it doesn't work with "every terminal out there"! As designed it works perfectly fine for certain use cases, though.

I'd consider expanding support in the future, although I'd need a detailed spec, at this point preferably including multiple formats or configurations to get many in one go, and add a new kind of tweakable setting for it. Maybe something more likely for 2.0, but in either case it would take users providing the necessary reference material.

phil123456:
ok but how do artists display thes .ans file ?

as for me, I managed to make it work

1 some escape sequences are either irrelevant nor non standard, so I filtered them
2 UART's and terminals use UTF8 ..who would have thought, so I have to conver characters tu utf8 characters

thanks for your help

Navigation

[0] Message Index

[#] Next page

Go to full version