This is a course page of David Casperson |
|
Without script |
With script |
The script program intercepts communication between the shell (the program that prints the “%” signs) and the keyboard and terminal window, and duplicates it and copies it to a file.
The scriptfix removes control codes (like backspace characters, and instructions that cause inverse video) from the scriptfile.
This is necessary because script just splits the program output in two. Information that is useful to the terminal window is not useful in the scriptfile.
fall-2024