1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-11-10 14:26:15 -05:00
OpenDiablo2/d2core/d2term/d2term.go
2020-06-28 21:40:52 -04:00

20 lines
318 B
Go

package d2term
import (
"github.com/OpenDiablo2/OpenDiablo2/d2core/d2input"
)
func Initialize() (*terminal, error) {
term, err := createTerminal()
if err != nil {
return nil, err
}
if err := d2input.BindHandlerWithPriority(term, d2input.PriorityHigh); err != nil {
return nil, err
}
return term, nil
}