Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed1.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.046 X-Spam-Evidence: '*H*': 0.91; '*S*': 0.00; 'automate': 0.07; 'cursor': 0.09; 'in-house': 0.09; 'subject:using': 0.09; 'overwriting': 0.16; 'subject:program': 0.16; 'wrappers': 0.16; 'wrote:': 0.18; 'library': 0.18; 'trying': 0.19; 'not,': 0.20; 'this?': 0.23; 'header:User-Agent:1': 0.23; 'subject:/': 0.26; 'header:In-Reply- To:1': 0.27; 'am,': 0.29; 'search.': 0.31; 'url:python': 0.33; 'screen': 0.34; 'but': 0.35; 'google': 0.35; 'there': 0.35; 'subject:?': 0.36; 'url:org': 0.36; 'jason': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'url:3': 0.61; 'complete': 0.62; 'movement': 0.65; 'charset:windows-1252': 0.65; 'received:74.208': 0.68; '(probably': 0.84; 'received:74.208.4.194': 0.84; 'old,': 0.85 Date: Sat, 14 Mar 2015 09:11:14 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Module/lib for controlling a terminal program using redrawing? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:GhDBBUGW6QITgiG0RXal48pP6zqcqL80v5PDOOBOUnyiFrYzcdZ TJGVZ5+TqTgJrmHhVKSr0y2HZPBmTavbPuhwwqGFaUH0XbwNtmhfeEg2ku6zZDfyLotR5ML aLe8cjhsEDl5pyPUDmx5TFxKVc941QeSQktYIGlN1OrSK++Tx0zTaK+S5qZs/teE3S5N9pS IDMjtV8/WaYRRuW/p0I9A== X-UI-Out-Filterresults: notjunk:1; X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.19 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: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1426338694 news.xs4all.nl 2887 [2001:888:2000:d::a6]:40187 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:87419 On 03/14/2015 06:50 AM, Jason Heeris wrote: > I am trying to automate the use of some old, in-house terminal-based > programs that use screen redrawing for their interface. This includes > single line redrawing (eg. using '\r' and overwriting), complete screen > clearing, and fine-grained cursor movement and overwriting (probably not > all in the same program at the same time though). > > Is there a module/library that can help me with this? https://docs.python.org/3/howto/curses.html That's in the standard library for both Python2 and 3. I don't know if it'll do everything you need, but if not, there are also various wrappers for curses that can be found with a google search. -- DaveA