Replies: 3 comments 7 replies
-
Adding a progress bar to the scriptreplay would be challenging because it would affect the output. We would need to keep the progress bar in the same place, but allow the rest of the output to continue moving with line breaks. Note that typescript may contain output in terminal raw mode, no line breaks (ncurses etc.). One potential solution could be an on-demand progress bar. By pressing a specific key or pausing the output, the typescript printing would stop, and the progress bar would appear. Releasing the key would erase the progress bar and return the original data to the line, allowing the typescript to continue playing. |
Beta Was this translation helpful? Give feedback.
-
Note also #2999 |
Beta Was this translation helpful? Give feedback.
-
Ad server: I can imagine an improvement that would allow for the use of a URI in the
This would establish a connection and write the session content to the connection instead of a local file. The process would look something like this:
To implement this, the The advantage of this approach is that it eliminates the need for any network-related code in the script itself, making it compatible with any type of connection (not just SSH). The ideal implementation should also use script-compatible binary on the remote side.
would be internally
where the |
Beta Was this translation helpful? Give feedback.
-
Hi! I teach Linux commands and shell scripting and I'm thinking about auditing my students' terminals at shell scripting exams (just in case I suspect someone copied) with the
script
/scriptreplay
commands. It is possible for me to do that (and I will probably try it in the next shell exam), but I'm thinking about two enhancements to thescript
thing:script
player, likescriptreplay
, but with a time bar at the bottom, a time elapsed/total time tag at the end of the bar and support for advancing, jumping to some time code (MM[:SS]
), etc.Anyway, feedback about these ideas would be welcome (even if somebody has a better alternative to the
script
auditing). Someday, if I have enough time and nobody else is interested in these, I may contribute this project with the player or the latter command myself (in case the maintainers want them).Beta Was this translation helpful? Give feedback.
All reactions