diff -r 9b3b29e0b467 -r 2d7b8b7ebd48 terminal.rst --- a/terminal.rst Tue Nov 17 19:49:45 2020 +0200 +++ b/terminal.rst Sat Nov 21 21:47:57 2020 +0200 @@ -77,21 +77,34 @@ $ luit -encoding 'ISO 8859-1' emacs -nw -Capture terminal session. -========================= +Capture terminal session +======================== + +``stript`` & ``ttyrec`` record byte streams together with timestamps. -Use ``script`` utility:: +``stript`` & ``ttyrec`` are not avaialble in Cygwin. + +GNU Screen is capable to log terminal output to a file (literary, without timestamps) and available +in Cygwin. Just push key ``L`` to start a recording Output will be saved into +the file ``screenlog.0``. + +With ``script`` utility:: $ script out.file sh# .... ^d - $ cat out.file - ... + $ less out.file + +Wikipedia articles: -Installing terminal utilities. -============================== +* https://en.wikipedia.org/wiki/Ttyrec +* https://en.wikipedia.org/wiki/Script_(Unix) + +Installing terminal utilities +============================= For Cygwin:: - $ setup.exe -p ncurses + setup.exe -p ncurses + apt-cyg install ncurses