[Tutor] Writing to the terminal?

Steven D'Aprano steve at pearwood.info
Tue Dec 14 12:23:25 CET 2010


Bill Allen wrote:
> Anyone know how to get WConio.putch() to properly put out a box drawing
> character to the screen in the while at a cmd prompt?   The code page is
> 437, but it when I tell it to put out 188, for example, it get a 1/4
> character instead of the box drawing character.

My guess is that there is a mis-match between the code page you think 
you have, the code page you actually have, and the encoding that your 
terminal is set to.

I suspect though that you might need to take this to a specialist WConio 
mailing list, if there is one, or at least the main Python list: 
python at python.org or comp.lang.python.


Good luck, and if you do find the solution, don't forget to post it here 
for future reference.


-- 
Steven


More information about the Tutor mailing list