how to do draw pattern with python?

Chris Angelico rosuav at gmail.com
Fri Sep 21 13:35:24 EDT 2012


On Sat, Sep 22, 2012 at 3:31 AM, Chris Angelico <rosuav at gmail.com> wrote:
> It's an ANSI escape sequence, or rather two of them. The first one
> clears the screen, the second returns you to 0,0. (Isn't that implicit
> in the 2J code? Maybe I'm misremembering.)

Ah. From Wikipedia:
"If n is two, clear entire screen (and moves cursor to upper left on
MS-DOS ANSI.SYS)."

So adding \e[H is necessary.

ChrisA



More information about the Python-list mailing list