Has anybody come across this issue? How did you overcome it?
(club, hearts, diamonds, spades) that are depicted by ascii values \x03 \x04 \x05 and \x06. When I try to use od_printf or od_disp_emu, the screen goes beserk.
Has anybody come across this issue? How did you overcome it?
I'm trying to write a card game door and I want to use the card symbols (club, hearts, diamonds, spades) that are depicted by ascii values \x03 \x04 \x05 and \x06. When I try to use od_printf or od_disp_emu, the screen goes beserk.
I'm trying to write a card game door and I want to use the card symbo (club, hearts, diamonds, spades) that are depicted by ascii values \x \x04 \x05 and \x06. When I try to use od_printf or od_disp_emu, the screen goes beserk.
Has anybody come across this issue? How did you overcome it?
Well, I do not program in Linux or in "C" at all, but I've also tried
that in other programs. I do not know if it's a program issue or if
it's a Terminal Issue.
I know that in the ASCII code those were used as Screen Control Characters. For Example: ASCII(3) signifies "End Of Text" ETX .
ASCII(4) signifies "End Transmit" EOT , ASCII(5) signifies "Enquiry" ETX and ASCII(6) signifies "Acknowledge" ACK.
That may be why the screen is going "Bezerk" because I "Believe" the Terminal program is reading those characters and is acting upon them as they were intended many years ago when you had Serial ASCII Terminals connecting to the Computer instead of simply Displaying them.
I could be wrong... Most probably I am.. Maybe test out this theory by using a different terminal program to "Play" your game.
On 10/23/17, Gryphon said the following...
I'm trying to write a card game door and I want to use the card symbo (club, hearts, diamonds, spades) that are depicted by ascii values \x \x04 \x05 and \x06. When I try to use od_printf or od_disp_emu, the screen goes beserk.
Check out https://nethackwiki.com/wiki/IBMgraphics I suspect there is
help there. What I thought was useful was:
Linux Console
If your system uses a unicode console, disable it (for the current session) with:
unicode_stop
Then re-load the default text font with one of the two following
commands:
Debian-based systems:
consolechars -m cp437 -f default8x16
Redhat-based systems, others:
setfont default8x16
Finally, you may need to load the CP437 translation mode:
setfont -m cp437
On 10/24/17, bcw142 said the following...
On 10/23/17, Gryphon said the following...
I'm trying to write a card game door and I want to use the card (club, hearts, diamonds, spades) that are depicted by ascii valu \x04 \x05 and \x06. When I try to use od_printf or od_disp_emu, screen goes beserk.
Check out https://nethackwiki.com/wiki/IBMgraphics I suspect there is help there. What I thought was useful was:
Linux Console
If your system uses a unicode console, disable it (for the current session) with:
unicode_stop
Then re-load the default text font with one of the two following commands:
Debian-based systems:
consolechars -m cp437 -f default8x16
Redhat-based systems, others:
setfont default8x16
Finally, you may need to load the CP437 translation mode:
setfont -m cp437
ugh! That's a lot of steps to go through. Consider that this is
intended to be a linux based door game. If this were the only way to
make it work, then it would require all the players to modify their terminals in this way.
One thing I haven't tried is to run the program as a door in Mystic. Mystic usually changes the terminal settings when it runs doors. Maybe that is all that is needed. At least that might fix it for Mystic BBSes.
--- Mystic BBS v1.12 A35 (Linux/64)
* Origin: Cyberia BBS | cyberia.darktech.org | San Jose, CA (21:1/120)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 286 |
Nodes: | 16 (2 / 14) |
Uptime: | 89:16:59 |
Calls: | 6,496 |
Calls today: | 7 |
Files: | 12,100 |
Messages: | 5,277,442 |