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

Paste functionality different on windows/Linux as paste to buffer does not fire paste widget #685

Closed
bamcgill opened this issue Jun 23, 2021 · 1 comment

Comments

@bamcgill
Copy link

bamcgill commented Jun 23, 2021

Paste to a LineReader on mac seems to work correctly and the character sequence has the '[200~' caught and handled by the paste widget aka the "beginPaste" method in LineReaderImpl.
On windows, this is never called and instead we just see the sequence of pasted characters.

Is there a way to make the functionality consistent?

@gnodet
Copy link
Member

gnodet commented Oct 18, 2021

The paste support requires that this feature is supported by the terminal, as the terminal is responsible for intercepting the key paste sequence and send the needed ansi sequence to the input stream.
For example, ConEmu on Windows does support bracketed paste, see https://conemu.github.io/en/AnsiEscapeCodes.html.

It's also worth noting that recent Windows Terminal versions now support bracketed paste: microsoft/terminal#9034

@gnodet gnodet closed this as completed Oct 18, 2021
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

2 participants