mstdn.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A general-purpose Mastodon server with a 500 character limit. All languages are welcome.

Administered by:

Server stats:

16K
active users

#cp437

1 post1 participant0 posts today
Felix Palmen :freebsd: :c64:<p>You might think rendering <a href="https://mastodon.bsd.cafe/tags/MSDOS" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>MSDOS</span></a> <a href="https://mastodon.bsd.cafe/tags/ANSIart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ANSIart</span></a> on a modern <a href="https://mastodon.bsd.cafe/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a> is just fine because it still supports the old codepages, including <a href="https://mastodon.bsd.cafe/tags/cp437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp437</span></a>. Well, sort of.</p><p>Some escape sequences are interpreted differently than ANSI.SYS did. In the worst case, you'll just see garbage. Most files are "sane" enough though, but even then, the default colors are "just wrong"...</p><p><a href="https://mastodon.bsd.cafe/tags/dos2ansi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dos2ansi</span></a> takes advantage of the 256color support available since Windows 10 to mimic the original <a href="https://mastodon.bsd.cafe/tags/VGA" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>VGA</span></a> palette. It also renders to a virtual canvas first, exactly emulating ANSI.SYS, and then uses a safe subset of ANSI for actual output. And it can read and display <a href="https://mastodon.bsd.cafe/tags/SAUCE" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SAUCE</span></a> metadata. 😎</p><p>Of course it also works on <a href="https://mastodon.bsd.cafe/tags/Linux" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Linux</span></a>, <a href="https://mastodon.bsd.cafe/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FreeBSD</span></a>, etc.</p><p><a href="https://zirias.github.io/dos2ansi/" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">zirias.github.io/dos2ansi/</span><span class="invisible"></span></a></p>
xero<p><a href="https://0w.nz" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">0w.nz</span><span class="invisible"></span></a> <br><a href="https://haunted.computer/tags/ansi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ansi</span></a> <a href="https://haunted.computer/tags/ansiart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ansiart</span></a> <a href="https://haunted.computer/tags/textart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>textart</span></a> <a href="https://haunted.computer/tags/ascii" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ascii</span></a> <a href="https://haunted.computer/tags/asciiart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>asciiart</span></a> <a href="https://haunted.computer/tags/pixelart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>pixelart</span></a> <a href="https://haunted.computer/tags/retro" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>retro</span></a> <a href="https://haunted.computer/tags/bbs" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>bbs</span></a> <a href="https://haunted.computer/tags/oldskool" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>oldskool</span></a> <a href="https://haunted.computer/tags/cp437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp437</span></a> <a href="https://haunted.computer/tags/blocks" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>blocks</span></a> <a href="https://haunted.computer/tags/blocktronics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>blocktronics</span></a></p>
Paolo Amoroso<p>This tool seems pretty useful for retrocomputing applications as it allows displaying code page 437 and IBM PC characters on modern terminal emulators.</p><p><a href="https://github.com/keaston/cp437" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="">github.com/keaston/cp437</span><span class="invisible"></span></a></p><p><a href="https://fosstodon.org/tags/cp437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp437</span></a> <a href="https://fosstodon.org/tags/msdos" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>msdos</span></a> <a href="https://fosstodon.org/tags/retrocomputing" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>retrocomputing</span></a> <a href="https://fosstodon.org/tags/terminal" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>terminal</span></a></p>
Felix Palmen 📯<p>As hard to believe as it is, the <a href="https://techhub.social/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a> <a href="https://techhub.social/tags/Console" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Console</span></a> still supports <a href="https://techhub.social/tags/CP437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>CP437</span></a>. And with the "virtual terminal processing" introduced in <a href="https://techhub.social/tags/Win10" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Win10</span></a>, it also accepts escape sequences, obviously even the more obscure ones from ANSI.SYS 😂 </p><p>So, on a somewhat recent <a href="https://techhub.social/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a>, you can display most <a href="https://techhub.social/tags/ANSIart" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>ANSIart</span></a> without any extra tool, 'chcp 437' and 'type' is enough.</p><p><a href="https://techhub.social/tags/dos2ansi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dos2ansi</span></a> will still be helpful:</p><p>* The output is sanitized, using *only* SGR sequences and a <a href="https://techhub.social/tags/Unicode" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Unicode</span></a> encoding (so, also suitable to store in a file)<br>* Correlated here, some "exotic" MS-DOS <a href="https://techhub.social/tags/codepages" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codepages</span></a> are supported.<br>* On Windows &gt; win10, colors will be corrected to the CGA/VGA palette (first screenshot)<br>* It will still work if your terminal width is different from what the input file assumes (second screenshot)</p><p>Screenshots show first 'type' with cp437 selected, then 'dos2ansi' 😎</p>
Felix Palmen 📯<p>And here's the upcoming "feature" for <a href="https://techhub.social/tags/dos2ansi" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>dos2ansi</span></a> v1.2: Attempt to format <a href="https://techhub.social/tags/SAUCE" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>SAUCE</span></a> comments nicely. 🙈 </p><p>It seems to be common practice to wrap comment lines in the middle of a word, so here's an attempt to be "smart" with this, adding an (optional) formatting heuristic:</p><p>* Empty lines are alway printed as is<br>* Same for lines containing "drawing" characters (anything &gt;= 0xb0 in <a href="https://techhub.social/tags/cp437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp437</span></a>)<br>* Otherwise, if the last character of a line *and* the first of the next line are non-space, it's assumed to be one word<br>* Formatted lines are filled with as many complete words as possible, preserving spaces except at the end of the line<br>* More than two spaces at the end of a (raw) line are interpreted as a line break</p><p>Here are two real examples of the result, while the second already shows some classic shit-in-shit-out case (to fix this, I'd probably need a language model 😂)</p>
Felix Palmen 📯<p>New pre-release of dos2ansi: v0.2</p><p>* Works on <a href="https://techhub.social/tags/Windows" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Windows</span></a>, win32 binary (cross-compiled on <a href="https://techhub.social/tags/FreeBSD" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>FreeBSD</span></a>) attached<br>* Selectable input <a href="https://techhub.social/tags/codepage" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>codepage</span></a> (so far only <a href="https://techhub.social/tags/cp437" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp437</span></a>, <a href="https://techhub.social/tags/cp850" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp850</span></a> and <a href="https://techhub.social/tags/cp858" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>cp858</span></a>)<br>* Selectable output format, <a href="https://techhub.social/tags/utf8" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf8</span></a>, <a href="https://techhub.social/tags/utf16" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16</span></a> or <a href="https://techhub.social/tags/utf16le" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>utf16le</span></a>, with or without <a href="https://techhub.social/tags/BOM" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>BOM</span></a> </p><p>Still a few things to add, e.g. use <a href="https://techhub.social/tags/termcap" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>termcap</span></a>/#terminfo or Windows Console API for "color output" when applicable ... we will see 😎</p><p><a href="https://github.com/Zirias/dos2ansi/releases/tag/v0.2" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/Zirias/dos2ansi/rel</span><span class="invisible">eases/tag/v0.2</span></a></p>