summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go')
-rw-r--r--vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go22
1 files changed, 1 insertions, 21 deletions
diff --git a/vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go b/vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go
index db253ca04..08ff24842 100644
--- a/vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go
+++ b/vendor/github.com/gdamore/tcell/v2/terminfo/dynamic/dynamic.go
@@ -1,4 +1,4 @@
-// Copyright 2020 The TCell Authors
+// Copyright 2021 The TCell Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use file except in compliance with the License.
@@ -394,26 +394,6 @@ func LoadTerminfo(name string) (*terminfo.Terminfo, string, error) {
t.SetFg = "\x1b[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m"
}
- // If the kmous entry is present, then we need to record the
- // the codes to enter and exit mouse mode. Sadly, this is not
- // part of the terminfo databases anywhere that I've found, but
- // is an extension. The escapedape codes are documented in the XTerm
- // manual, and all terminals that have kmous are expected to
- // use these same codes, unless explicitly configured otherwise
- // vi XM. Note that in any event, we only known how to parse either
- // x11 or SGR mouse events -- if your terminal doesn't support one
- // of these two forms, you maybe out of luck.
- t.MouseMode = tc.getstr("XM")
- if t.Mouse != "" && t.MouseMode == "" {
- // we anticipate that all xterm mouse tracking compatible
- // terminals understand mouse tracking (1000), but we hope
- // that those that don't understand any-event tracking (1003)
- // will at least ignore it. Likewise we hope that terminals
- // that don't understand SGR reporting (1006) just ignore it.
- t.MouseMode = "%?%p1%{1}%=%t%'h'%Pa%e%'l'%Pa%;" +
- "\x1b[?1000%ga%c\x1b[?1002%ga%c\x1b[?1003%ga%c\x1b[?1006%ga%c"
- }
-
// We only support colors in ANSI 8 or 256 color mode.
if t.Colors < 8 || t.SetFg == "" {
t.Colors = 0