add 'mouse' option to enable/disable mouse events

cc #268 #570
This commit is contained in:
Gokcehan committed 2021-01-29 19:36:27 +03:00
1 parent 1163efb7aa
commit 13d19d84f9
8 files changed
+46 -2

No files matched your search

+3 -1
View File
@@ -21,7 +21,9 @@ func run() {
} else if err = screen.Init(); err != nil {
log.Fatalf("initializing screen: %s", err)
}
screen.EnableMouse()
if gOpts.mouse {
screen.EnableMouse()
}
f, err := os.Create(gLogPath)
if err != nil {