Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #87419

Re: Module/lib for controlling a terminal program using redrawing?

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 <davea@davea.name>
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 <davea@davea.name>
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 <CA+Zd3FeBRz2ErLZLX1rsFioUrtLmrpC5TnLqCp=QpmBiiGOhcQ@mail.gmail.com>
In-Reply-To <CA+Zd3FeBRz2ErLZLX1rsFioUrtLmrpC5TnLqCp=QpmBiiGOhcQ@mail.gmail.com>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.354.1426338694.21433.python-list@python.org> (permalink)
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

Show key headers only | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Re: Module/lib for controlling a terminal program using redrawing? Dave Angel <davea@davea.name> - 2015-03-14 09:11 -0400
  Re: Module/lib for controlling a terminal program using redrawing? Paul Rubin <no.email@nospam.invalid> - 2015-03-14 11:00 -0700

csiph-web