fork/gdu
git clone https://git.julia.blue/fork/gdu
8b8f1e9
ignore
1// Package common contains commong logic and interfaces used across Gdu 2// nolint: revive //Why: this is common package 3package common 4 5import ( 6"github.com/gdamore/tcell/v2" 7"github.com/rivo/tview" 8) 9 10// TermApplication is interface for the terminal UI app 11type TermApplication interface { 12Run ()error 13Stop () 14Suspend (f func ())bool 15SetRoot (root tview.Primitive ,fullscreen bool )* tview.Application 16SetFocus (p tview.Primitive )* tview.Application 17SetInputCapture (capture func (event * tcell.EventKey )* tcell.EventKey )* tview.Application 18SetMouseCapture ( 19capture func (event * tcell.EventMouse ,action tview.MouseAction ) (* tcell.EventMouse , tview.MouseAction ), 20 )* tview.Application 21QueueUpdateDraw (f func ())* tview.Application 22SetBeforeDrawFunc (func (screen tcell.Screen )bool )* tview.Application 23}