fix stdin in windows

This commit is contained in:
Cheney 2016-03-05 15:27:02 +08:00
parent 867002449c
commit c4ec21b1c6
1 changed files with 2 additions and 5 deletions

View File

@ -1,9 +1,6 @@
package readline
import (
"io"
"os"
)
import "io"
type Instance struct {
Config *Config
@ -71,7 +68,7 @@ func (c *Config) Init() error {
}
c.inited = true
if c.Stdin == nil {
c.Stdin = os.Stdin
c.Stdin = Stdin
}
if c.Stdout == nil {
c.Stdout = Stdout