react-bash icon indicating copy to clipboard operation
react-bash copied to clipboard

access history from main app

Open cartalegault opened this issue 2 years ago • 0 comments

Hi there - As I understand, each time something is typed/returned, it appends to the history array and state.

Is there a way to access history on an ongoing basis?

I'd like to do something like:

  1. user cat's some file
  2. file prints UUID
  3. if history.find UUID then trigger some action.. maybe show a button

Similarly if, history gets beyond some count, maybe i auto trigger help.

Is this possible?

cartalegault avatar May 15 '22 02:05 cartalegault