[submodule "cmd/micro/vendor/github.com/flynn/json5"]
path = cmd/micro/vendor/github.com/flynn/json5
url = https://github.com/flynn/json5
-[submodule "cmd/micro/vendor/github.com/james4k/terminal"]
- path = cmd/micro/vendor/github.com/james4k/terminal
- url = https://github.com/james4k/terminal
[submodule "cmd/micro/vendor/github.com/kr/pty"]
path = cmd/micro/vendor/github.com/kr/pty
url = https://github.com/kr/pty
+[submodule "cmd/micro/vendor/github.com/zyedidia/terminal"]
+ path = cmd/micro/vendor/github.com/zyedidia/terminal
+ url = https://github.com/zyedidia/terminal
+++ /dev/null
-Subproject commit b4bcb6ee7c08ae4930eecdeb1ba90073c5f40d71
--- /dev/null
+Subproject commit 7281cdf385148d6feb5f2e401ed82e9193013a00
"strings"
"time"
- "github.com/james4k/terminal"
"github.com/zyedidia/tcell"
+ "github.com/zyedidia/terminal"
)
// The ViewType defines what kind of view this is
// HandleEvent handles an event passed by the main loop
func (v *View) HandleEvent(event tcell.Event) {
if v.Type == vtTerm {
- if _, ok := event.(*tcell.EventMouse); !ok {
+ if _, ok := event.(*tcell.EventMouse); !ok || v.termState.Mode(terminal.ModeMouseMask) {
v.pty.WriteString(event.EscSeq())
}
return
func JoinRule(rule string) string {
split := strings.Split(rule, `" "`)
joined := strings.Join(split, "|")
- joined = joined
return joined
}