Skip to content

Manual: -fexec-charset=cp437 route, CP437 box-drawing and colour references - #423

Merged
gbmhunter merged 2 commits into
mainfrom
docs/cp437-reference
Sep 6, 2026
Merged

gbmhunter merged 2 commits into
mainfrom
docs/cp437-reference

Conversation

@gbmhunter

Copy link
Copy Markdown
Owner

From the latest comment on #411.

  • Character Encoding: a UTF-8 source file now has three listed routes, with the recommended one first: CP437 in NinjaTerm, readable glyph literals in the source, and GCC's -fexec-charset=cp437 (with where to set it in STM32CubeIDE). One byte per glyph in flash and on the wire, source stays readable. The previous two routes remain.
  • CP437 Box-Drawing Reference (new section): the 40 box-drawing bytes grouped by line style, plus blocks and shades, each with decimal and hex. A note explains why 18 of them type as accented letters via Windows Alt codes on a CP850 install, which is what the commenter ran into.
  • SGR: a colour-code table and an example; bold brightening the foreground is stated (.f31.b shares its colour with .f91).
  • Fix: the Terminal Font table was split by the padding tip, stranding the System monospace and Custom rows; the tip now follows the whole table.

Docs build passes; verified in the built HTML that the font table is one table again and the new tables render.

From the follow-up on #411. The Character Encoding section offered two
routes for a UTF-8 source file (decode as UTF-8, or CP437 with hex escapes);
the better third route is CP437 in NinjaTerm with readable glyph literals in
the source and GCC's -fexec-charset=cp437, which keeps one byte per glyph in
flash and on the wire. It is now listed first, with where to set it in
STM32CubeIDE.

New CP437 Box-Drawing Reference: the 40 box-drawing bytes grouped by line
style, plus blocks and shades, each with decimal and hex. A note explains
why 18 of them come out as accented letters when typed with Windows Alt
codes on a CP850 (European) install. The SGR section gains a colour table
and an example; bold brightening the foreground is now stated (.f31.b shares
its colour with .f91).

Also fixes the Terminal Font table, which the padding tip had split in two,
stranding the System monospace and Custom rows below it.
@gbmhunter
gbmhunter merged commit 44674bd into main Sep 6, 2026
8 checks passed
@gbmhunter
gbmhunter deleted the docs/cp437-reference branch September 6, 2026 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant