What type of encoding do these ANSI artworks use?
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I've found this website; it has zip files (links on the main page) with all the artworks. Some of them have an .ans
extension and they look like ANSI escape codes used on Linux/Unix, but when I open one of them using cat
in the XFce terminal it produces garbage (but in color). They don't look like the image gallery.
The first line of the main artwork from the link looks like this (copied from Emacs):
[0;1m[30mthere is no substitute [0;33mÃÂÃÂò[1;43mðñòò[40mÃÂ[43mÃÂòñ[0;33màÃÂÃÂ[1;43mòòò[40mÃÂÃÂò[40m[K
The file type is DOS, but they can be just created on Windows.
When searching for ANSI art I also found this website that has zip files containing only files with an .ans
extension and they also don't render properly on Linux (gallery on page 2).
My questions are:
- what type of encoding is this, for what computer?
- do I need a special viewer to see it on Linux terminal?
- do you know if this type of artwork was created for Linux/Unix terminals? I've only found ASCII art.
- is it possible to convert it to be viewed on Linux terminals?
linux ansi-term ansi
add a comment |Â
up vote
4
down vote
favorite
I've found this website; it has zip files (links on the main page) with all the artworks. Some of them have an .ans
extension and they look like ANSI escape codes used on Linux/Unix, but when I open one of them using cat
in the XFce terminal it produces garbage (but in color). They don't look like the image gallery.
The first line of the main artwork from the link looks like this (copied from Emacs):
[0;1m[30mthere is no substitute [0;33mÃÂÃÂò[1;43mðñòò[40mÃÂ[43mÃÂòñ[0;33màÃÂÃÂ[1;43mòòò[40mÃÂÃÂò[40m[K
The file type is DOS, but they can be just created on Windows.
When searching for ANSI art I also found this website that has zip files containing only files with an .ans
extension and they also don't render properly on Linux (gallery on page 2).
My questions are:
- what type of encoding is this, for what computer?
- do I need a special viewer to see it on Linux terminal?
- do you know if this type of artwork was created for Linux/Unix terminals? I've only found ASCII art.
- is it possible to convert it to be viewed on Linux terminals?
linux ansi-term ansi
1
The data part isn't UTF-8: if you knew what encoding it used, you could userecode
oriconv
to translate it. Or (knowing the encoding), you could useluit
to translate it, usingcat
to the display. Knowing the encoding is probably something for superuser forum, not topical here.
â Thomas Dickey
7 hours ago
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I've found this website; it has zip files (links on the main page) with all the artworks. Some of them have an .ans
extension and they look like ANSI escape codes used on Linux/Unix, but when I open one of them using cat
in the XFce terminal it produces garbage (but in color). They don't look like the image gallery.
The first line of the main artwork from the link looks like this (copied from Emacs):
[0;1m[30mthere is no substitute [0;33mÃÂÃÂò[1;43mðñòò[40mÃÂ[43mÃÂòñ[0;33màÃÂÃÂ[1;43mòòò[40mÃÂÃÂò[40m[K
The file type is DOS, but they can be just created on Windows.
When searching for ANSI art I also found this website that has zip files containing only files with an .ans
extension and they also don't render properly on Linux (gallery on page 2).
My questions are:
- what type of encoding is this, for what computer?
- do I need a special viewer to see it on Linux terminal?
- do you know if this type of artwork was created for Linux/Unix terminals? I've only found ASCII art.
- is it possible to convert it to be viewed on Linux terminals?
linux ansi-term ansi
I've found this website; it has zip files (links on the main page) with all the artworks. Some of them have an .ans
extension and they look like ANSI escape codes used on Linux/Unix, but when I open one of them using cat
in the XFce terminal it produces garbage (but in color). They don't look like the image gallery.
The first line of the main artwork from the link looks like this (copied from Emacs):
[0;1m[30mthere is no substitute [0;33mÃÂÃÂò[1;43mðñòò[40mÃÂ[43mÃÂòñ[0;33màÃÂÃÂ[1;43mòòò[40mÃÂÃÂò[40m[K
The file type is DOS, but they can be just created on Windows.
When searching for ANSI art I also found this website that has zip files containing only files with an .ans
extension and they also don't render properly on Linux (gallery on page 2).
My questions are:
- what type of encoding is this, for what computer?
- do I need a special viewer to see it on Linux terminal?
- do you know if this type of artwork was created for Linux/Unix terminals? I've only found ASCII art.
- is it possible to convert it to be viewed on Linux terminals?
linux ansi-term ansi
linux ansi-term ansi
edited 19 mins ago
Stephen Kitt
150k23333401
150k23333401
asked 8 hours ago
jcubic
2,78942540
2,78942540
1
The data part isn't UTF-8: if you knew what encoding it used, you could userecode
oriconv
to translate it. Or (knowing the encoding), you could useluit
to translate it, usingcat
to the display. Knowing the encoding is probably something for superuser forum, not topical here.
â Thomas Dickey
7 hours ago
add a comment |Â
1
The data part isn't UTF-8: if you knew what encoding it used, you could userecode
oriconv
to translate it. Or (knowing the encoding), you could useluit
to translate it, usingcat
to the display. Knowing the encoding is probably something for superuser forum, not topical here.
â Thomas Dickey
7 hours ago
1
1
The data part isn't UTF-8: if you knew what encoding it used, you could use
recode
or iconv
to translate it. Or (knowing the encoding), you could use luit
to translate it, using cat
to the display. Knowing the encoding is probably something for superuser forum, not topical here.â Thomas Dickey
7 hours ago
The data part isn't UTF-8: if you knew what encoding it used, you could use
recode
or iconv
to translate it. Or (knowing the encoding), you could use luit
to translate it, using cat
to the display. Knowing the encoding is probably something for superuser forum, not topical here.â Thomas Dickey
7 hours ago
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
15
down vote
accepted
These are ANSI escape codes, but youâÂÂre running into three issues:
the character encoding, as you suspect â most of these files are in CP437, so you need to convert them:
iconv -f CP437 -t UTF-8
the colour scheme â these files typically assume something similar to the CGA/EGA/VGA colour scheme used on PCs; terminal emulators generally allow you to choose a colour scheme (or redefine colours manually), for example GNOME Terminal has a âÂÂLinux consoleâ built-in scheme which works well for ANSI art;
the screen size â most ANSI art assumes a screen width of 80 columns and expects to wrap around there.
Once you fix all that, you donâÂÂt need a special viewer; hereâÂÂs a screenshot showing the output of aa-neurodancer.ans
in GNOME Terminal, after converting the character encoding:
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
15
down vote
accepted
These are ANSI escape codes, but youâÂÂre running into three issues:
the character encoding, as you suspect â most of these files are in CP437, so you need to convert them:
iconv -f CP437 -t UTF-8
the colour scheme â these files typically assume something similar to the CGA/EGA/VGA colour scheme used on PCs; terminal emulators generally allow you to choose a colour scheme (or redefine colours manually), for example GNOME Terminal has a âÂÂLinux consoleâ built-in scheme which works well for ANSI art;
the screen size â most ANSI art assumes a screen width of 80 columns and expects to wrap around there.
Once you fix all that, you donâÂÂt need a special viewer; hereâÂÂs a screenshot showing the output of aa-neurodancer.ans
in GNOME Terminal, after converting the character encoding:
add a comment |Â
up vote
15
down vote
accepted
These are ANSI escape codes, but youâÂÂre running into three issues:
the character encoding, as you suspect â most of these files are in CP437, so you need to convert them:
iconv -f CP437 -t UTF-8
the colour scheme â these files typically assume something similar to the CGA/EGA/VGA colour scheme used on PCs; terminal emulators generally allow you to choose a colour scheme (or redefine colours manually), for example GNOME Terminal has a âÂÂLinux consoleâ built-in scheme which works well for ANSI art;
the screen size â most ANSI art assumes a screen width of 80 columns and expects to wrap around there.
Once you fix all that, you donâÂÂt need a special viewer; hereâÂÂs a screenshot showing the output of aa-neurodancer.ans
in GNOME Terminal, after converting the character encoding:
add a comment |Â
up vote
15
down vote
accepted
up vote
15
down vote
accepted
These are ANSI escape codes, but youâÂÂre running into three issues:
the character encoding, as you suspect â most of these files are in CP437, so you need to convert them:
iconv -f CP437 -t UTF-8
the colour scheme â these files typically assume something similar to the CGA/EGA/VGA colour scheme used on PCs; terminal emulators generally allow you to choose a colour scheme (or redefine colours manually), for example GNOME Terminal has a âÂÂLinux consoleâ built-in scheme which works well for ANSI art;
the screen size â most ANSI art assumes a screen width of 80 columns and expects to wrap around there.
Once you fix all that, you donâÂÂt need a special viewer; hereâÂÂs a screenshot showing the output of aa-neurodancer.ans
in GNOME Terminal, after converting the character encoding:
These are ANSI escape codes, but youâÂÂre running into three issues:
the character encoding, as you suspect â most of these files are in CP437, so you need to convert them:
iconv -f CP437 -t UTF-8
the colour scheme â these files typically assume something similar to the CGA/EGA/VGA colour scheme used on PCs; terminal emulators generally allow you to choose a colour scheme (or redefine colours manually), for example GNOME Terminal has a âÂÂLinux consoleâ built-in scheme which works well for ANSI art;
the screen size â most ANSI art assumes a screen width of 80 columns and expects to wrap around there.
Once you fix all that, you donâÂÂt need a special viewer; hereâÂÂs a screenshot showing the output of aa-neurodancer.ans
in GNOME Terminal, after converting the character encoding:
edited 1 hour ago
answered 7 hours ago
Stephen Kitt
150k23333401
150k23333401
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f475523%2fwhat-type-of-encoding-do-these-ansi-artworks-use%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
The data part isn't UTF-8: if you knew what encoding it used, you could use
recode
oriconv
to translate it. Or (knowing the encoding), you could useluit
to translate it, usingcat
to the display. Knowing the encoding is probably something for superuser forum, not topical here.â Thomas Dickey
7 hours ago