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

[draft] Add Bracketed Paste Events #557

Closed
wants to merge 2 commits into from

Conversation

sigmaSd
Copy link
Contributor

@sigmaSd sigmaSd commented Apr 1, 2021

#545

Couple of points:

@sigmaSd sigmaSd requested a review from TimonPost as a code owner April 1, 2021 14:04
@sigmaSd
Copy link
Contributor Author

sigmaSd commented Apr 1, 2021

To not flush the events I need to detect BracketdPasteStart/End here https://github.com/crossterm-rs/crossterm/blob/master/src/event/source/unix.rs#L76 but I think they're being filtered? I would appreciate some pointers there.

The idea if i detect them at that point I can

  • Add to UnixInternalEventSource struct, a pate_flag and paste_buffer
  • If the event at line 76 is BracketedPasteStart set paste_flag to true
  • if paste_flag is true, push the received event at line 76 to paste_buffer and don't early return
  • If the event at line 76 is BracketedPasteEnd set paste_flag to false, return Event(PasteEvent(self.paste_buffer.drain())

@sigmaSd
Copy link
Contributor Author

sigmaSd commented Jul 28, 2022

closed in favor of #693

@sigmaSd sigmaSd closed this Jul 28, 2022
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

Successfully merging this pull request may close these issues.

None yet

1 participant