使用 screen hardcopy -h 作为日志文件的终端仿真器,结果输出有时包含 NULL 字符等

问题描述 投票:0回答:0

我正在使用调用 screen hardcopy -h 的 bash 脚本将 catted 日志文件的内容复制到终端输出,但是当日志文件包含例如 GRUB 菜单时,生成的输出文件包含空字符以及其他字符,例如 ^B , ^L, ^P.

以下是我所指的输出差异: manually copying the terminal output after catting the log file viewed in vim screen hardcopy's output viewed in vim

我想知道为什么屏幕硬拷贝无法“复制”这个 grub 菜单,而是输出 NULL 字符等等? 我可能会添加一个命令,在调用 screen hardcopy -h 后擦除文件。

gnu-screen terminal-emulator
© www.soinside.com 2019 - 2024. All rights reserved.