作者kornelius (Kornelius)
看板perl
标题Re: [问题] 如何抓取windows console资料
时间Tue Jul 24 20:15:26 2007
这个应该可以.
http://search.cpan.org/~jdb/libwin32-0.27/Console/Console.pm
* reading and writing of characters, attributes and whole portions of the
screen
* complete processing of keyboard and mouse events
* some very funny additional features :)
※ 引述《erspicu (lpo)》之铭言:
: 好比说程式是在windows console模式下执行,
: 会跑出一个 console 文字介面视窗,现在假设说我执行了一个perl程式,
: 不管是print什麽内容,或是system去跑了什麽程式,都会在console上输出,
: 现在是希望在程式结束前,把之前列印出的字串(还在console buffer内的,
: 有点类似console的全选功能)
: 抓取出来,存到一个log档中.
: 有没有人知道该如何做?
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 59.116.161.252