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
214 stars 33 forks source link

Multiple concurrent spaces not respected in terminal output #20

Closed jonmbake closed 2 years ago

jonmbake commented 2 years ago

Describe the bug If I define an output like

{type: LineType.Output, value: 'Output with           multiple spaces!'},

The terminal outputs:

Output with multiple spaces!

It should respect multiple spaces.

To Reproduce

  1. Add Line output containing value with multiple concurrent spaces

Notice that the terminal output does not show the extra spaces.

Expected behavior Terminal output should respect all spaces.

Screenshots N/A

Additional context N/A