1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-03 01:37:18 -04:00
OpenDiablo2/d2core/d2term/d2term.go

20 lines
318 B
Go
Raw Normal View History

package d2term
import (
"github.com/OpenDiablo2/OpenDiablo2/d2core/d2input"
)
2020-06-28 21:40:52 -04:00
func Initialize() (*terminal, error) {
2020-06-28 21:40:52 -04:00
term, err := createTerminal()
if err != nil {
2020-06-28 21:40:52 -04:00
return nil, err
}
2020-06-28 21:40:52 -04:00
if err := d2input.BindHandlerWithPriority(term, d2input.PriorityHigh); err != nil {
return nil, err
2020-02-09 14:12:04 -05:00
}
2020-06-28 21:40:52 -04:00
return term, nil
2020-02-09 14:12:04 -05:00
}