react-console-emulator icon indicating copy to clipboard operation
react-console-emulator copied to clipboard

Wrap input instead instead of horizontal scrolling

Open klugjo opened this issue 3 years ago • 1 comments

Thanks for the great library!

In most terminals, if you type a line longer than the width of the window, it wraps the text

image

In react-console-emulator, it would scroll instead.

HTML input can't wrap the text, a textarea is probably required for this.

Is there an easy solution for this ?

Thanks

klugjo avatar Jun 05 '21 07:06 klugjo

I think this is something that depends on what terminal interface you're using, so it's not universal behaviour. It may also be desirable to wrap in some contexts, but not in others. It wouldn't be hard to add a setting to toggle between the two behaviours, I'll look into doing that.

linuswillner avatar Jun 05 '21 10:06 linuswillner