Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'escape': 0.07; '"if': 0.09; '22,': 0.09; 'cursor': 0.09; 'sep': 0.09; 'subject:python': 0.11; 'sat,': 0.15; 'clears': 0.16; 'code?': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'screen,': 0.16; 'sequence,': 0.16; 'two,': 0.16; 'wrote:': 0.17; 'implicit': 0.22; 'second': 0.24; 'header:In-Reply-To:1': 0.25; 'am,': 0.27; 'necessary.': 0.27; 'message-id:@mail.gmail.com': 0.27; 'chris': 0.28; 'ansi': 0.29; "i'm": 0.29; 'maybe': 0.29; '(and': 0.32; 'to:addr:python-list': 0.33; 'received:google.com': 0.34; 'screen': 0.34; 'clear': 0.35; 'subject:?': 0.35; 'received:209.85': 0.35; 'subject:with': 0.36; 'two': 0.37; 'rather': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'first': 0.61; 'upper': 0.75; 'moves': 0.84 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IZgGxLwm1+pBZaL7pAAwquASt+NjiWMf/ifEG4GBKsI=; b=YMUd4Acqq5SbAKolZPURUUse+OL4Fao8wcIQ2VuDn9CAxAPJoLm7AF+8zX0KWWBRdV UKyFYTeP5i8v1mKHmDrag6xg0/pyOqkbBAydCZ1eT+YkhFsV6XTgteATy/g0efJ8vMia gpOxiXTJR30is3G34znVGJxTKEOqfJ4/zwnUTTnPUoi7GN2ppv9c/7NsRmr/giWObpnR K7bG0YLBTHpkfMZLbdEu/48pBqUM62D+A2V61skVNo1mX1sFcrz9RWcUHvvRYrhYB+Ak L/q5u9vHg0fYFozp2pa0+Xj1pd+/omaJlYLpFU0TlQ8hAhwNnYeSz+fC1tUuwa534Xm7 R4gw== MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 22 Sep 2012 03:35:24 +1000 Subject: Re: how to do draw pattern with python? From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 12 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348248928 news.xs4all.nl 6859 [2001:888:2000:d::a6]:50550 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29659 On Sat, Sep 22, 2012 at 3:31 AM, Chris Angelico 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