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?

Date 2015-03-14 09:11 -0400
From Dave Angel <davea@davea.name>
Subject Re: Module/lib for controlling a terminal program using redrawing?
References <CA+Zd3FeBRz2ErLZLX1rsFioUrtLmrpC5TnLqCp=QpmBiiGOhcQ@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.354.1426338694.21433.python-list@python.org> (permalink)

Show all headers | 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