aboutsummaryrefslogtreecommitdiff
path: root/pkg/pointer/intput-output.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/pointer/intput-output.go')
-rw-r--r--pkg/pointer/intput-output.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/pkg/pointer/intput-output.go b/pkg/pointer/intput-output.go
index cc7533e..ac58d44 100644
--- a/pkg/pointer/intput-output.go
+++ b/pkg/pointer/intput-output.go
@@ -4,8 +4,6 @@ import (
"fmt"
"log"
"os"
-
- "github.com/pkg/term"
)
var defaultInputLastChar *int = nil
@@ -16,13 +14,6 @@ func DefaultCharacterInput() int {
defaultInputLastChar = nil
return c
}
- t, err := term.Open("/dev/stdin")
- if err != nil {
- log.Fatalf("Could not open stdin: %+v", err)
- }
- defer t.Close()
- defer t.Restore()
- term.RawMode(t)
b := make([]byte, 1)
i, err := os.Stdin.Read(b)
if err != nil {