What type of encoding do these ANSI artworks use?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite
1












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?









share|improve this question



















  • 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















up vote
4
down vote

favorite
1












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?









share|improve this question



















  • 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













up vote
4
down vote

favorite
1









up vote
4
down vote

favorite
1






1





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?









share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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 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













  • 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








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











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:



ANSI art showing a human head with spectacles






share|improve this answer






















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "106"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    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






























    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:



    ANSI art showing a human head with spectacles






    share|improve this answer


























      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:



      ANSI art showing a human head with spectacles






      share|improve this answer
























        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:



        ANSI art showing a human head with spectacles






        share|improve this answer














        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:



        ANSI art showing a human head with spectacles







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 1 hour ago

























        answered 7 hours ago









        Stephen Kitt

        150k23333401




        150k23333401



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            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













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            Installing NextGIS Connect into QGIS 3?

            One-line joke