0
如何记录控制台输入和输出的最佳方式是什么?在DocBook中,我使用了(SCREEN)和(PROGRAMLISTING),但是在Doxygen中找不到类似的标签。如何记录屏幕/控制台/终端输入和输出
我需要两种格式。控制台的命令列表中看到whic可以复制粘贴,就像一个剧本:
touch foo
ls -hg foo help
而其他格式这就好比有人看到屏幕上输出:
[email protected]:~$ touch help
[email protected]:~$ ls -hg foo help
ls: cannot access foo: No such file or directory
-rw-r--r-- 1 joe 9.3K Mar 5 10:23 help
感谢/ hans
谢谢。代码+逐字记录看起来恰到好处。 – hschou
很高兴帮助。现在适合'接受'答案。 – Cheeseminer