olls / graphics

A console based graphics engine for simple Unicode games and animations.
GNU General Public License v3.0
11 stars 4 forks source link

Improve Compatibility #11

Open olls opened 10 years ago

olls commented 10 years ago

Particularly with Unicode characters, they should switch to ASCII instead of erroring. Also the different modules such as colors, console and nbinput should test if possible if they are working and if not fail gracefully with fall backs.

geraintwhite commented 10 years ago

This might be useful http://code.activestate.com/recipes/134892/

olls commented 10 years ago

Looks very similar to the one I'm using, it uses the same modules, I don't know if it has better compatibility, I havn't tested my current one on windows yet.

geraintwhite commented 10 years ago

This one has compatibility for Unix and Windows. It works in Linux, haven't tried in Windows.

olls commented 10 years ago

d834cc477588dec1e39729f6f795961411b7119c Fallbacks' for default characters in Canvas and Sprite

olls commented 10 years ago

62e2d07d2d887c8c6d346fcc54dfeed45d1a90d6 Characters in Sprites which are not supported are now replaced with a ?

olls commented 10 years ago

5a38e0557de412987d0be8c04e0c42f1722a3b28 Added @grit96's suggested code from above comment with some modifications to keep compatible with the rest of the code.

geraintwhite commented 10 years ago

console.py is not compatible with Windows - fcntl module doesn't exist