summaryrefslogtreecommitdiff
path: root/tui/draw.go
diff options
context:
space:
mode:
Diffstat (limited to 'tui/draw.go')
-rw-r--r--tui/draw.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/tui/draw.go b/tui/draw.go
index 14f11fa..d30e0eb 100644
--- a/tui/draw.go
+++ b/tui/draw.go
@@ -106,6 +106,7 @@ func Start() error {
scr.back = make(surface)
_, err = os.Stdout.WriteString(
terminfo.Get(caps.EnterCaMode) +
+ "\033[?2004h" + // bracketed paste
terminfo.Get(caps.XM, 1) +
terminfo.Get(caps.ClearScreen),
)
@@ -119,6 +120,7 @@ func End() {
os.Stdout.WriteString(
terminfo.Get(caps.ClearScreen) +
terminfo.Get(caps.XM, 0) +
+ "\033[?2004l" + // disable bracketed paste
terminfo.Get(caps.ExitCaMode),
)
if term.Restore(0, saved) != nil {