1
0
mirror of https://github.com/gdamore/tcell.git synced 2025-04-24 13:48:51 +08:00

Add LookupTerminfo stub for wasm

Resolves #617
This commit is contained in:
Remko Tronçon 2023-07-11 17:46:30 +02:00 committed by Garrett D'Amore
parent b64f3de22e
commit b187e6250e

View File

@ -19,6 +19,7 @@ package tcell
import ( import (
"errors" "errors"
"github.com/gdamore/tcell/v2/terminfo"
"strings" "strings"
"sync" "sync"
"syscall/js" "syscall/js"
@ -676,3 +677,7 @@ var curStyleClasses = map[CursorStyle]string{
CursorStyleBlinkingBar: "cursor-blinking-bar", CursorStyleBlinkingBar: "cursor-blinking-bar",
CursorStyleSteadyBar: "cursor-steady-bar", CursorStyleSteadyBar: "cursor-steady-bar",
} }
func LookupTerminfo(name string) (ti *terminfo.Terminfo, e error) {
return nil, errors.New("LookupTermInfo not supported")
}