Fix: ö/ò in DINOBYTE vertauscht, quad_net-Plugin-Fehler im Browser abgefangen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Richard ZinkandClaude Opus 5.5 committed 2026-11-02 22:20:24 +01:00
1 parent db417b3af8
commit b4b4fea45b
2 files changed
+7

No files matched your search

+6
View File
@@ -56,6 +56,12 @@ const CP437_LOW: &str = " ☺☻♥♦♣♠•◘○◙♂♀♪♫☼►◄↕
const CP437_HIGH: &str = "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\u{a0}"; const CP437_HIGH: &str = "ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■\u{a0}";
pub fn cp437(ch: char) -> u8 { pub fn cp437(ch: char) -> u8 {
// In DINOBYTE sind ö (0x94) und ò (0x95) vertauscht
match ch {
'ö' => return 0x95,
'ò' => return 0x94,
_ => {}
}
let u = ch as u32; let u = ch as u32;
if (32..127).contains(&u) { if (32..127).contains(&u) {
return u as u8; return u as u8;
+1
View File
@@ -11,6 +11,7 @@
</head> </head>
<body> <body>
<canvas id="glcanvas" tabindex="1" oncontextmenu="return false"></canvas> <canvas id="glcanvas" tabindex="1" oncontextmenu="return false"></canvas>
<script>var register_plugin; /* vom quad_net-Plugin im Bundle erwartet */</script>
<script src="mq_js_bundle.js"></script> <script src="mq_js_bundle.js"></script>
<script> <script>
document.getElementById("glcanvas").focus(); document.getElementById("glcanvas").focus();