Python like the old-time batch files.

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Thu Jan 31 20:27:08 EST 2002


"Peter Hansen" <peter at engcorp.com> wrote in message
news:<3C59EC08.1E51E658 at engcorp.com>...
>
> Boxes are formed from lines, and the lines are just special graphic
> characters from the IBM PC Extended ASCII Display Characters as shown
> in, for example, http://www.jimprice.com/jim-asc.htm .
>
> For example, the following outputs a trivial, fixed-size box at the
> current location:
>
> >>> WConio.cputs('\xDA\xC4\xC4\xC4\xBF\n\xC0\xC4\xC4\xC4\xD9')
> +---+
> +---+>>>
>
> (Yes, that looks better on in the DOS prompt... :)

Huh.  Brain damage, obviously... I didn't realize that the standard
IBM graphics worked in a Windows console.  It's using code page 437,
then?

> I'd recommend not adding it to WConio, since it is relatively
> simple to do as needed, and is not itself sufficient for much
> improvement over a basic text interface, so it would likely
> grow over time and overload WConio with mostly unused
> functionality.  A new module on top of WConio might be a better
> option.

I may include it as an example.

Thanks for the info.






More information about the Python-list mailing list