Search code examples
linuxterminalteraterm

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


In Tera Term (Terminal emulator), I was viewing log files real-time. I used the command "tail -f ". My question is ...

When I saw a log line I want to read, I would like to pause the terminal output for a while without stopping the "tail" process.

I heard there's a way to do that in tera term. But I cannot find out how to do.

Can anyone tell me? Thanks in advance.


Solution

  • Usually your terminal is configured to honor XON/XOFF, as controlQ and controlS, e.g.,

    $ 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
    

    While originally a hardware feature, this is more often emulated in software. By pressing controlS, you tell the computer to stop sending characters to the terminal, and pressing controlQ to resume.

    For discussion, see