Open
Description
Your shell should have a start-record keybind, say: CTRL+R
and a prompt shows up.
Usecase: a new user has no clue what caused an error and they've to keep scrolling to take screenshots and you have to manually read through and type commands one by one from that screenshot to reproduce their errors. Instead: psh lets them share their logs from that specific session.
It starts to log anything on the STDOUT and appends it to a file. The user can publish this file to a pastebin. This in essence is like (a long-screenshot) so that you can share what went it wrong while debugging.
Try building it natively, otherwise if out of time, let call ascii cinema in a forked process when the CTRL+R
keybind is pressed. ref: ascii cinema