#codepages

π˜‹π˜ͺ𝘳𝘬dirk@gts.0x7be.net
2025-04-09

#fbdev #vconsole #unimap #fbcon #keymaps #codepages … 3 hours of unproductive time wasted on research why one machine uses code page 437 (the Linux default code page for #tty) and the other machine doesn’t.

It is mentioned on several pages, that the default is #CP437, and how I can change this default, but it seems like a mystery or forbidden knowledge WHY it is changed, without me actively changing it.

It might have to do with the screen resolutions of those two devices, or that one is an #Intel #GPU and the other is #Nvidia. But i was not able to find anything of value.

Oh #fuck this shit.

#ModernLinuxProblems #MagicBullshit

Can the system please let ME be in control and not doing seemingly undocumented random shit that is not represented in any configuration and feels like it’s hidden in a blackbox?

That would be great, thanks.

Felix Palmen πŸ“―zirias@techhub.social
2024-02-21

As hard to believe as it is, the #Windows #Console still supports #CP437. And with the "virtual terminal processing" introduced in #Win10, it also accepts escape sequences, obviously even the more obscure ones from ANSI.SYS πŸ˜‚

So, on a somewhat recent #Windows, you can display most #ANSIart without any extra tool, 'chcp 437' and 'type' is enough.

#dos2ansi will still be helpful:

* The output is sanitized, using *only* SGR sequences and a #Unicode encoding (so, also suitable to store in a file)
* Correlated here, some "exotic" MS-DOS #codepages are supported.
* On Windows > win10, colors will be corrected to the CGA/VGA palette (first screenshot)
* It will still work if your terminal width is different from what the input file assumes (second screenshot)

Screenshots show first 'type' with cp437 selected, then 'dos2ansi' 😎

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst