linuswillner/react-console-emulator

Ability to change/update history item

jay-jlm opened this issue · 2 comments

I was searching the API for some method like updateHistoryAtIndex(index, updatedString) but could not find one.
This would be super useful for things like counters, progress indicators and such.

Let me know if there is some workaround/hack in order to accomplish this.

I don't think allowing the updating of history items would in itself be anything more than a hack, ironically enough. I can see what you're looking for with this idea though, and I'll absolutely consider implementing it somehow. However, presently, there is no way to accomplish this.

Implemented in 223f012. Will be pushed with the next major version.