term: add bracketed paste support

Allow forwarding paste events to embedded applications. When a bracketed
paste is in progress, do not process any command bindings.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
This commit is contained in:
Tim Culverhouse 2022-09-14 21:36:42 +02:00 committed by Robin Jarry
parent 518f3e962c
commit cf319129de
3 changed files with 24 additions and 0 deletions
lib/ui

View file

@ -28,6 +28,7 @@ func Initialize(content DrawableInteractive) (*UI, error) {
screen.Clear()
screen.HideCursor()
screen.EnablePaste()
width, height := screen.Size()