Tera term实时查看日志文件,暂停终端输出一段时间

View log files real time in Tera term and pause terminal output for a while

Tera Term (Terminal emulator),我正在实时查看日志文件。 我使用了命令"tail -f "。 我的问题是...

当我看到我想阅读的日志行时,我想在不停止 "tail" 进程的情况下暂停终端输出一段时间。

我听说有一种方法可以做到这一点。但是我不知道该怎么做。

谁能告诉我?提前致谢。

通常您的终端配置为支持 XON/XOFF,如 controlQcontrolS,例如,

$ stty -a
speed 38400 baud; rows 40; columns 80; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

虽然最初是 硬件 功能,但更经常在 软件 中模拟。通过按 controlS,告诉计算机停止向终端发送字符,然后按 control Q 继续。

有关讨论,请参阅