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: 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>': 0.16; 'email name:<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; '>': 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: References: Date: Sun, 15 Mar 2015 09:28:54 +1100 Subject: Re: Module/lib for controlling a terminal program using redrawing? From: Jason Heeris To: Terry Reedy 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: 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 --001a11c1264c6ce0340511472446 Content-Type: text/plain; charset=UTF-8 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 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 --001a11c1264c6ce0340511472446 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, Paul Rubin had it right: I hadn't thought of the = term "screen scraper," but that might help my searching.

O= n 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 i= nterpreted stream (a 24 x 80 array) on the screen.=C2=A0 Searching 'pyt= hon terminal emulation' returns these

Thanks for those results. = I also discovered that someone wrote a Python ANSI terminal scraper origina= lly for use with Nethack:=C2=A0https://github.com/helgefmi/ansiterm (although it seems generic en= ough).

Cheers,
Jason
--001a11c1264c6ce0340511472446--