Replaced termbox with tcell

This commit is contained in:
Leon Mika 2021-03-24 08:23:23 +11:00
parent e790b508a1
commit 185900d626
3 changed files with 21 additions and 9 deletions

View file

@ -3,7 +3,7 @@
package ui
import (
"github.com/nsf/termbox-go"
"github.com/gdamore/tcell/termbox"
)
type TermboxDriver struct {
@ -101,7 +101,6 @@ var termboxKeysToSpecialKeys = map[termbox.Key]rune{
termbox.KeyArrowLeft: KeyArrowLeft,
termbox.KeyArrowRight: KeyArrowRight,
termbox.KeyCtrlSpace: KeyCtrlSpace,
termbox.KeyCtrlA: KeyCtrlA,
termbox.KeyCtrlB: KeyCtrlB,
termbox.KeyCtrlC: KeyCtrlC,
@ -133,5 +132,4 @@ var termboxKeysToSpecialKeys = map[termbox.Key]rune{
termbox.KeyCtrl5: KeyCtrl5,
termbox.KeyCtrl6: KeyCtrl6,
termbox.KeyCtrl7: KeyCtrl7,
termbox.KeyCtrl8: KeyCtrl8,
}