mirror of https://github.com/chzyer/readline.git
fix stdin in windows
This commit is contained in:
parent
867002449c
commit
c4ec21b1c6
|
@ -1,9 +1,6 @@
|
||||||
package readline
|
package readline
|
||||||
|
|
||||||
import (
|
import "io"
|
||||||
"io"
|
|
||||||
"os"
|
|
||||||
)
|
|
||||||
|
|
||||||
type Instance struct {
|
type Instance struct {
|
||||||
Config *Config
|
Config *Config
|
||||||
|
@ -71,7 +68,7 @@ func (c *Config) Init() error {
|
||||||
}
|
}
|
||||||
c.inited = true
|
c.inited = true
|
||||||
if c.Stdin == nil {
|
if c.Stdin == nil {
|
||||||
c.Stdin = os.Stdin
|
c.Stdin = Stdin
|
||||||
}
|
}
|
||||||
if c.Stdout == nil {
|
if c.Stdout == nil {
|
||||||
c.Stdout = Stdout
|
c.Stdout = Stdout
|
||||||
|
|
Loading…
Reference in New Issue