Skip to content

Commit

Permalink
Add LookupTerminfo stub for wasm
Browse files Browse the repository at this point in the history
Resolves #617
  • Loading branch information
remko-bw authored and gdamore committed Aug 15, 2023
1 parent b64f3de commit b187e62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wscreen.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ package tcell

import (
"errors"
"github.com/gdamore/tcell/v2/terminfo"
"strings"
"sync"
"syscall/js"
Expand Down Expand Up @@ -676,3 +677,7 @@ var curStyleClasses = map[CursorStyle]string{
CursorStyleBlinkingBar: "cursor-blinking-bar",
CursorStyleSteadyBar: "cursor-steady-bar",
}

func LookupTerminfo(name string) (ti *terminfo.Terminfo, e error) {
return nil, errors.New("LookupTermInfo not supported")
}

0 comments on commit b187e62

Please sign in to comment.