hide cursor
parent
da04fa7ef5
commit
c825888147
|
@ -77,6 +77,7 @@ func (menu *MainMenu) Event(state *ui.State, event vaxis.Event) (processed bool)
|
|||
}
|
||||
|
||||
func showManpage(state *ui.State) {
|
||||
state.HideCursor()
|
||||
vt := term.New()
|
||||
vt.TERM = os.Getenv("TERM")
|
||||
vt.Attach(state.PostEvent())
|
||||
|
@ -90,6 +91,7 @@ func showManpage(state *ui.State) {
|
|||
for ev := range state.Events() {
|
||||
switch ev.(type) {
|
||||
case term.EventClosed:
|
||||
state.HideCursor()
|
||||
state.Window().Clear()
|
||||
return
|
||||
case vaxis.Redraw:
|
||||
|
|
Loading…
Reference in New Issue