Replaced termbox with tcell
This commit is contained in:
parent
e790b508a1
commit
185900d626
3 changed files with 21 additions and 9 deletions
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue