pyxtermjs
pyxtermjs copied to clipboard
Save the user prompt that is sent from web terminal
I am trying to save the user prompt to a log file but this program receives every key that is pressed by user without filtering any. Is there any way to save only the input when pressed enter?
Which program are you running? A bash shell? If it’s bash, it saves command history on its own to a file called ~/.bash_history.