
Keyboard shortcut: Include in ~/.Xresources: URxvt.print-pipe: cat > $HOME/scrollbackīinds to Ctrl+Print or Shift+Print. home/user/dumps/xt files, XTerm*printFileImmediate: /home/user/dumps/xt Useful to specify the path of the dumped file. Setting the path: printFileImmediate sets the prefix of the dumped file. Terminal contents has been created in your home directory.Ĭtrl Shift y, add to your ~/.Xresources file: XTerm*vt100.Translations: #override\ Select "Print-All Immediately" and release. In the following steps, run xrdb ~/.Xressources after modifying the X-resources file, then open a new terminal to test the changes. There will be a lot of junk log files, but you can clean old ones from time to time, so it's not a big problem. (If you forget to do so, raw log files will still be in their folder Īlso you may start recording to a new log file by typing startnewlog. If you want, you can save current session log after the fact (in the end of the session) by typing savelog or savelog logname – this will copy current raw log to ~/Terminal_typescripts/manual and also create readable. bashrc file add this: smart_scriptĪfter you've done this, "script" command will be executed once in every terminal session, logging everything to ~/Terminal_typescripts/raw. Printf 'Saved logs:\n '$txtfile'\n '$rawfile'\n'Īnd to the end of your. Manualdir=$SCRIPT_LOG_PARENT_FOLDER/manual # Manually saves current log file: $ savelog logname # if there's no SCRIPT_LOG_FILE exported yetĮxport SCRIPT_LOG_PARENT_FOLDER=$logdirparentĪlias startnewlog='unset SCRIPT_LOG_FILE & smart_script -v' bash_aliases this: # Execute "script" command just once I too faced the same problem and after some search came up with this solution:Īdd to your. running quietly -q ( -quiet) without showing/saving program messages, it can also run a specific command -c ( -command) rather than a session, it also has many other options. To logout of the script session (stop saving the contents), just type exit. You can save the result to a different file too by just starting script like: script output.txt You can start a script session by just typing script in the terminal, all the subsequent commands and their outputs will all be saved in a file named typescript in the current directory.


Interactive session as proof of an assignment, as the typescript file

It is useful for students who need a hardcopy record of an It will basically save everything printed on the terminal in that script session.įrom man script: script makes a typescript of everything printed on your terminal.
