{"id":21985376,"url":"https://github.com/phmajerus/ansi-art","last_synced_at":"2025-05-07T04:04:47.783Z","repository":{"id":158799448,"uuid":"142782334","full_name":"PhMajerus/ANSI-art","owner":"PhMajerus","description":"Philippe Majerus’s ANSI-art collection","archived":false,"fork":false,"pushed_at":"2025-01-16T02:53:07.000Z","size":321,"stargazers_count":67,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T04:04:41.963Z","etag":null,"topics":["ansi-art","cmd","command-line","console","curl","pseudo-pixels","semigraphics","terminal","unicode","unicode-art","vt100"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PhMajerus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-29T17:46:07.000Z","updated_at":"2025-04-16T01:25:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"c1e0d776-a4fd-425b-8650-4663d9e00fce","html_url":"https://github.com/PhMajerus/ANSI-art","commit_stats":{"total_commits":157,"total_committers":1,"mean_commits":157.0,"dds":0.0,"last_synced_commit":"3b94dc54f54b4c8f0b10bcadd82aaea7febb1a25"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhMajerus%2FANSI-art","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhMajerus%2FANSI-art/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhMajerus%2FANSI-art/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PhMajerus%2FANSI-art/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PhMajerus","download_url":"https://codeload.github.com/PhMajerus/ANSI-art/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252810271,"owners_count":21807760,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansi-art","cmd","command-line","console","curl","pseudo-pixels","semigraphics","terminal","unicode","unicode-art","vt100"],"created_at":"2024-11-29T18:13:35.061Z","updated_at":"2025-05-07T04:04:47.761Z","avatar_url":"https://github.com/PhMajerus.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# ANSI-art\nRandom ANSI-art files\n\n![Screenshot](Sample%20AnsiArt.png)\n\n.txt files are UTF-8. These can be displayed simply using curl with their raw URL. For example:\n`curl -s 'https://raw.githubusercontent.com/PhMajerus/ANSI-art/master/Lxss-VTArt-Red.txt'`\n\n.ans and .asc files are CP437 (MS-DOS US) files, sometimes containing a SUB as an end-of-file. These can be displayed using curl piped to iconv to convert CP437 to UTF-8 and then to sed to trim anything from SUB. For example:\n`curl -s 'https://raw.githubusercontent.com/PhMajerus/ANSI-art/master/Super%20Mario%20castle%20(wide)%20(256%20colors).ans' | iconv -f CP437 | sed 'H;$!d;x;s/\\x1A.*$//'`\n\nIn cmd.exe, simply use the \"type\" command with local copies of the files, using \"chcp 437\" first for CP437 .ans and .asc files and \"chcp 65001\" for UTF-8 .txt files.\n\nIn ActiveScript Shell, use the following functions:\\\nJScript\\\n`function getAnsi(url) { var xhr = new XMLHttpRequest(); xhr.open(\"GET\",url,false); xhr.send(); return Encodings.binaryToText(xhr.responseBody,437).trimSUB(); }`\\\n`echo(getAnsi(\"https://raw.githubusercontent.com/PhMajerus/ANSI-art/master/Super%20Mario%20castle%20(wide)%20(256%20colors).ans\"));`\\\nVBScript\\\n`Function GetAnsi(URL): Dim XHR: Set XHR=CreateObject(\"MSXML2.XMLHTTP.6.0\"): XHR.Open \"GET\",URL,False: XHR.Send: GetAnsi=TrimSUB(Encodings.BinaryToText(XHR.ResponseBody,437)): End Function`\\\n`Echo GetAnsi(\"https://raw.githubusercontent.com/PhMajerus/ANSI-art/master/Super%20Mario%20castle%20(wide)%20(256%20colors).ans\")`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmajerus%2Fansi-art","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphmajerus%2Fansi-art","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphmajerus%2Fansi-art/lists"}