开发者

How can we dump the output of ncurses based programs to a file in Linux?

I tried using tee command, it does not work. I need to get the output of some ncurses bases program (iftop) dumped to a file. Do you know how to do开发者_如何学C it ?


You could try ttyrec or termrec. These programs actually make a recording of the output over time. If you need just a static picture, I think xterm can save a dump of what is currently on the screen.


There is a "man script" utility installed out of the box with most linux distros. It can produce replayable typescripts when option --timing given.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜