1
0
mirror of https://github.com/rivo/tview.git synced 2025-04-24 13:48:56 +08:00

Return self

This commit is contained in:
Chris Miller 2019-11-04 05:42:46 +00:00
parent 96875c75b9
commit 2f4b6ad748

View File

@ -168,10 +168,11 @@ func (a *Application) SetScreen(screen tcell.Screen) *Application {
}
// EnableMouse enables mouse events.
func (a *Application) EnableMouse() {
func (a *Application) EnableMouse() *Application {
a.Lock()
a.enableMouse = true
a.Unlock()
return a
}
// Run starts the application and thus the event loop. This function returns