有没有Python等同于Perl模块Term::VT102的?

2024-05-15 11:16:29 发布

您现在位置:Python中文网/ 问答频道 /正文

在Perl中有一个非常方便的模块Term::VT102,它允许您在内存中创建一个屏幕。这对于抓取非常方便,因为您可以跟踪对屏幕部分的所有更改,然后将屏幕导出为纯文本进行处理。Python中是否有等效的模块?在

后续问题:有一些像Pexpect这样的模块可以让您对VT100的屏幕进行筛选,但是VT100和VT102有什么不同?在


Tags: 模块内存文本屏幕perlpexpectvt100term
2条回答

另请参见ashttp构建在Pexcept之上:

ashttp can serve any text application over http, like :

$ ashttp 8080 top
to serve a top on port 8080, or :

$ ashttp 8080 watch -n 1 ls -lah /tmp
to serve an actualized directory listing of /tmp

(来源:https://mdk.fr/blog/ashttp-vt100-screen-scraping-exported-over-http.html

Pexpect,它支持VT100,可能对您有帮助。在

相关问题 更多 >