通常在终端中如需截屏,只要把显示的文字存下来就可以了。
实际上Linux的系统命令setterm已经具备这一功能。使用setterm截屏的语法如下:
setterm -dump 控制台终端号 -file 保存到的文件名
如:
# setterm -dump 1 -file a.txt