aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTim Culverhouse <tim@timculverhouse.com>2022-09-14 21:36:42 +0200
committerRobin Jarry <robin@jarry.cc>2022-09-14 22:19:42 +0200
commitcf319129de36a2832674466e28bfa2dbb9bfc0cc (patch)
treece3ef2274135c6b62e5432eb2d541f6005fc02d0 /lib
parent518f3e962ce39fb9712bb693857789ab22adfe9c (diff)
downloadaerc-cf319129de36a2832674466e28bfa2dbb9bfc0cc.tar.gz
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/ui/ui.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ui/ui.go b/lib/ui/ui.go
index a4128a5c..632d5f1d 100644
--- a/lib/ui/ui.go
+++ b/lib/ui/ui.go
@@ -28,6 +28,7 @@ func Initialize(content DrawableInteractive) (*UI, error) {
screen.Clear()
screen.HideCursor()
+ screen.EnablePaste()
width, height := screen.Size()