Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap input instead instead of horizontal scrolling #944

Open
klugjo opened this issue Jun 5, 2021 · 1 comment
Open

Wrap input instead instead of horizontal scrolling #944

klugjo opened this issue Jun 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@klugjo
Copy link

klugjo commented Jun 5, 2021

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

@linuswillner
Copy link
Owner

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 linuswillner added the enhancement New feature or request label Jun 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants