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


Groups > comp.lang.python > #87454

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!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <jason.heeris@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.006
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; "'python": 0.09; 'interpreted': 0.09; 'screen.': 0.09; 'subject:using': 0.09; 'url:github': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; 'wrote': 0.14; 'email addr:udel.edu&gt;': 0.16; 'email name:&lt;tjreedy': 0.16; 'emulation': 0.16; 'reedy': 0.16; 'right:': 0.16; 'subject:program': 0.16; 'wrote:': 0.18; 'seems': 0.21; 'cc:addr:python.org': 0.22; 'paul': 0.24; 'cheers,': 0.24; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; '&gt;': 0.26; 'subject:/': 0.26; 'header:In-Reply-To:1': 0.27; 'originally': 0.30; 'message-id:@mail.gmail.com': 0.30; 'program,': 0.31; '(although': 0.31; 'but': 0.35; 'received:google.com': 0.35; 'thanks': 0.36; 'subject:?': 0.36; 'searching': 0.37; 'displays': 0.38; 'generic': 0.38; 'jason': 0.38; 'removing': 0.60; 'results.': 0.60; 'march': 0.61; 'term': 0.63; 'discovered': 0.83; '2015': 0.84; 'guts': 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 :cc:content-type; bh=JxN5P2e7vRZmiKQLRIibjiAn7fSe1DdWLrCa1APOzKU=; b=AbxU0bjX90bfMYJ9zIyZxVCXiE/nGeAWjkyh9lqWtsVPsmJvAr0/+MCWEStO51iGZj YpnMGc5X4CMlcgN9J4zgu7XKokUn0IkpAuV0QMhDvVhhEZxV9yV/a6xhSx3LducNBEJg bTMBLksZgjlilpiuwW4rRcF6dSPUvVY8cCncsIrsAjGmHEVAnJTnt/+RoAD3lBt++EB8 YYO6VvrGYAAWmf0PFtoJujqN8tLN1+WuRnacCazfXHjJmlm3saMuSfzOBw6FrFSq6hTM k5fMn1JryN9W4A0BhhtYFRR1IZM6zn00FSZeAql1vYrCW0Aom9YGZcSUr+iaL2SpiPem dczg==
MIME-Version 1.0
X-Received by 10.140.80.176 with SMTP id c45mr9491162qgd.101.1426372135016; Sat, 14 Mar 2015 15:28:55 -0700 (PDT)
In-Reply-To <me1vuf$f56$1@ger.gmane.org>
References <CA+Zd3FeBRz2ErLZLX1rsFioUrtLmrpC5TnLqCp=QpmBiiGOhcQ@mail.gmail.com> <me1vuf$f56$1@ger.gmane.org>
Date Sun, 15 Mar 2015 09:28:54 +1100
Subject Re: Module/lib for controlling a terminal program using redrawing?
From Jason Heeris <jason.heeris@gmail.com>
To Terry Reedy <tjreedy@udel.edu>
Cc python-list@python.org
Content-Type multipart/alternative; boundary=001a11c1264c6ce0340511472446
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.380.1426372143.21433.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1426372143 news.xs4all.nl 2966 [2001:888:2000:d::a6]:47440
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:87454

Show key headers only | View raw


[Multipart message — attachments visible in raw view] - view raw

Yes, Paul Rubin had it right: I hadn't thought of the term "screen
scraper," but that might help my searching.

On 15 March 2015 at 05:50, Terry Reedy <tjreedy@udel.edu> wrote:
>
> Perhaps you can use the guts of a terminal emulation program, removing
the part that displays the interpreted stream (a 24 x 80 array) on the
screen.  Searching 'python terminal emulation' returns these

Thanks for those results. I also discovered that someone wrote a Python
ANSI terminal scraper originally for use with Nethack:
https://github.com/helgefmi/ansiterm (although it seems generic enough).

Cheers,
Jason

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


Thread

Re: Module/lib for controlling a terminal program using redrawing? Jason Heeris <jason.heeris@gmail.com> - 2015-03-15 09:28 +1100

csiph-web