mirror of
https://github.com/br0xen/termbox-screen.git
synced 2024-11-21 21:23:15 +00:00
Add Manual termbox Close function
This commit is contained in:
parent
e9dc04fa31
commit
a69fcaa438
@ -137,7 +137,7 @@ func (m *Manager) Loop() error {
|
||||
}
|
||||
m.running = false
|
||||
close(m.events)
|
||||
termbox.Close()
|
||||
m.Close()
|
||||
return nil
|
||||
}
|
||||
|
||||
@ -149,6 +149,10 @@ func (m *Manager) SendEvent(t termbox.Event) {
|
||||
m.events <- t
|
||||
}
|
||||
|
||||
func (m *Manager) Close() {
|
||||
termbox.Close()
|
||||
}
|
||||
|
||||
func (m *Manager) pollUserEvents() {
|
||||
for m.running {
|
||||
m.SendEvent(termbox.PollEvent())
|
||||
|
Loading…
Reference in New Issue
Block a user