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

Detect bracketed paste capable terminals #728

Open
gnodet opened this issue Oct 19, 2021 · 0 comments
Open

Detect bracketed paste capable terminals #728

gnodet opened this issue Oct 19, 2021 · 0 comments

Comments

@gnodet
Copy link
Member

gnodet commented Oct 19, 2021

The bracketed paste on/off strings are displayed when the terminal does not support bracketed paste mode:

←[?2004hEnter input>foo
←[?2004lInvalid input

As a workaround, calling the following method on Windows platform should do the trick:

reader.unsetOpt(Option.BRACKETED_PASTE);

Maybe we could change the default on Windows platform : it should be possible to detect probably working terminals (using OSUtils.IS_CONEMU or using WT_SESSION as indicated in microsoft/terminal#1040.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant