看板 Perl 關於我們 聯絡資訊
這個應該可以. 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