jonmbake / react-terminal-ui

A terminal react component with support for light and dark modes.
https://jonmbake.github.io/react-terminal-ui/demo/
MIT License
205 stars 30 forks source link

When updating two terminals at the same page, only one terminal scroll to bottom #28

Closed MeyerBuaharon closed 1 year ago

MeyerBuaharon commented 1 year ago

Describe the bug When there are multiple terminals, and they are being updated with the same state, only one terminal will scroll to the bottom

To Reproduce Steps to reproduce the behavior: Make more then one terminal, and have them to use from the same array of lines, that updates on input or something like that

Expected behavior Both of the terminal scroll to the bottom and show new lines written

Screenshots image

Additional context Add any other context about the problem here.

jonmbake commented 1 year ago

Thanks for opening this issue, @MeyerBuaharon . Feel free to open a PR if you have a fix!