Add mouse option to allow disabling mouse support

This commit is contained in:
Zachary Yedidia
2017-09-06 15:50:50 -04:00
parent 404e5d206d
commit 90977fb4e1
5 changed files with 21 additions and 2 deletions

View File

@@ -184,6 +184,10 @@ func NewBuffer(reader io.Reader, size int64, path string) *Buffer {
file.Close()
}
if b.Settings["mouse"].(bool) {
screen.EnableMouse()
}
b.cursors = []*Cursor{&b.Cursor}
return b