On 10/26/17, Gryphon said the following...
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.
Yes it would, it's what you have to do now to have CP437 under Linux shells
for the most part. It's one reason my main system is still running 14.04 instead of 16.04. Either will work on Mystic if it has UTF-8 as on option, otherwise that's what you have to do.
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.
Yes, that should work as well with any normal terminal program like SyncTERM
or the like. UTF-8 is an issue for older software and is now the standard for Linux and Windows. It seems some versions of Linux are drifting away from
that, but Ubuntu seems to have the worse of both worlds ;( Windows also seems to be heading that way. If it settles down we can likely make a translator
like putty and mystic uses and add it like netfoss and the like. Another
layer between the user and the BBS.
--- Mystic BBS v1.12 A35 (Linux/64)
* Origin: Cyberia BBS | cyberia.darktech.org | San Jose, CA (21:1/120)
--- Mystic BBS v1.12 A35 (Linux/64)
* Origin: Workpoint (21:1/145.3)