diff --git a/examples/cellbuf/main.go b/examples/cellbuf/main.go index c99e212b..2a040bcb 100644 --- a/examples/cellbuf/main.go +++ b/examples/cellbuf/main.go @@ -40,7 +40,7 @@ func main() { defer scr.Close() //nolint:errcheck - drv, err := input.NewDriver(os.Stdin, termType, 0) + drv, err := input.NewReader(os.Stdin, termType, 0) if err != nil { log.Fatalf("creating input driver: %v", err) } diff --git a/examples/layout/main.go b/examples/layout/main.go index bdbf046f..c9fecafa 100644 --- a/examples/layout/main.go +++ b/examples/layout/main.go @@ -401,7 +401,7 @@ func main() { defer term.Restore(os.Stdin.Fd(), state) //nolint:errcheck - drv, err := input.NewDriver(os.Stdin, termType, 0) + drv, err := input.NewReader(os.Stdin, termType, 0) if err != nil { log.Fatalf("creating input driver: %v", err) }