开发者

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

开发者 https://www.devze.com 2023-02-24 00:10 出处:网络
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. T

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

精彩评论

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