{"id":21002857,"url":"https://github.com/mobluse/x16-petscii2utf8","last_synced_at":"2026-04-22T18:31:18.642Z","repository":{"id":80543086,"uuid":"211215940","full_name":"mobluse/x16-petscii2utf8","owner":"mobluse","description":"A filter for Commander X16 \u0026 Commodore 64 that converts PETSCII to Unicode \u0026 VT100","archived":false,"fork":false,"pushed_at":"2023-06-17T15:04:32.000Z","size":1098,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T03:41:06.039Z","etag":null,"topics":["c64","commander-x16","commanderx16","cx16","filter","petscii","vic20","vt100","xterm"],"latest_commit_sha":null,"homepage":"http://commanderx16.com","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mobluse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-09-27T02:01:37.000Z","updated_at":"2023-06-14T20:00:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"12ad461a-8921-4003-b0d8-7429976844f5","html_url":"https://github.com/mobluse/x16-petscii2utf8","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mobluse/x16-petscii2utf8","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobluse%2Fx16-petscii2utf8","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobluse%2Fx16-petscii2utf8/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobluse%2Fx16-petscii2utf8/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobluse%2Fx16-petscii2utf8/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mobluse","download_url":"https://codeload.github.com/mobluse/x16-petscii2utf8/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mobluse%2Fx16-petscii2utf8/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32149379,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T17:06:48.269Z","status":"ssl_error","status_checked_at":"2026-04-22T17:06:19.037Z","response_time":58,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c64","commander-x16","commanderx16","cx16","filter","petscii","vic20","vt100","xterm"],"created_at":"2024-11-19T08:20:37.823Z","updated_at":"2026-04-22T18:31:18.619Z","avatar_url":"https://github.com/mobluse.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# x16-petscii2utf8\nThis filter program for Linux (including WSL) converts output of the \n[Commander X16 Emulator](http://commanderx16.com) R33+ to UTF-8\nlooking like PETSCII-UC, PETSCII-LC, or ISO8859-15 depending on what is used. \nIt also converts the control codes to ANSI/VT100/xterm Escape sequences. It can print some debug information\ne.g. Ⓓ \u0026 Ⓐ for CR \u0026 LF, if you use option -d. In the future also the keypresses will be shown, and there is some\nbuggy support for that already.\n\n![Startup with OLD in native Linux using -log k](startup.png?raw=true)\n\n## Usage\n\n    x16emu -echo raw | petscii2utf8 -d\n\nor if these are not installed:\n\n    ./x16emu -echo raw | ~/x16-petscii2utf8/petscii2utf8 -d\n\n`READY.` is changed to `READY!` as a confirmation that it works. \n\nKeys might work in the Commander X16 Emulator R33+ using:\n\n    ./x16emu -echo raw -log k | ~/x16-petscii2utf8/petscii2utf8\n\nKeys in the terminal sending to the emulator does not work, unless you patch the emulator.\n\n![PETSCIIISO.BAS PETSCII-UC](petscii-unshifted.png?raw=true)\n![PETSCIIISO.BAS PETSCII-LC](petscii-shifted.png?raw=true)\n![PETSCIIISO.BAS ISO8859-15](iso8859-15-shifted.png?raw=true \"PETSCIIISO.BAS ISO8859-15 Shifted\")\nTry [petsciiiso.bas](https://github.com/mobluse/chargen-maker/blob/master/petsciiiso.bas)!\n\nThis system can also be used in Windows 10+ using WSL, and I have tested it in Ubuntu 18.04 LTS with Windows-terminal 1.17; \nboth from Microsoft Store, but it probably works with later versions.\nI used the font [Unscii-16-full](http://viznut.fi/unscii/unscii-16-full.ttf) in Windows-terminal since the built-in fonts \nfrom Microsoft currently don't support symbols for legacy computing.\n\n    /mnt/c/Users/pi/Downloads/x16emu_win64-r43/x16emu.exe -echo raw -run -bas ~/chargen-maker/petsciiiso.bas | ~/x16-petscii2utf8/petscii2utf8\n\n![Startup with OLD in WSL in Windows w/o using -log k](https://github.com/mobluse/x16-petscii2utf8/assets/5777329/6f58fad9-5013-41ef-938f-3d324800d24f)\n## Building PETSCII2UTF8\nUnfortunately I don't yet know `make` or `CMake` so I made a script `build.sh` that compiles the code to executables.\nThis has been tested on Raspbian Buster and Bullseye Linux. I would like it to build on macOS, but I have no Mac to test it on.\n\n    git clone https://github.com/mobluse/x16-petscii2utf8\n    cd x16-petscii2utf8\n    ./clean.sh\n    ./build.sh\n\n## References\nhttps://en.wikipedia.org/wiki/PETSCII  \nhttps://en.wikipedia.org/wiki/Symbols_for_Legacy_Computing  \nhttps://style64.org/petscii/  \nhttps://dflund.se/~triad/krad/recode/petscii_c64en_uc.txt  \nhttps://dflund.se/~triad/krad/recode/petscii_c64en_lc.txt ─ These were used to generate some code using enter-unicode.  \nhttps://docs.microsoft.com/en-us/windows/console/console-virtual-terminal-sequences  \nhttps://github.com/X16Community/x16-docs/blob/master/X16%20Reference%20-%2002%20-%20Editor.md#new-control-characters  \nhttp://viznut.fi/unscii/  \n\n## Acknowledgements\nSee also: https://github.com/commanderx16/x16-emulator/pull/112\n\nI would like to thank [@mist64](https://github.com/mist64) for reviews.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobluse%2Fx16-petscii2utf8","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmobluse%2Fx16-petscii2utf8","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmobluse%2Fx16-petscii2utf8/lists"}