cs01 / pyxtermjs

A fully functional terminal in your browser.
MIT License
361 stars 92 forks source link

Save the user prompt that is sent from web terminal #37

Open MuhammedAliISIK opened 1 year ago

MuhammedAliISIK commented 1 year ago

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?

cs01 commented 1 year ago

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.