peterh / liner

Pure Go line editor with history, inspired by linenoise
MIT License
1.05k stars 132 forks source link

Input problem on Windows #99

Closed iikira closed 6 years ago

iikira commented 6 years ago

But it work fine on OS X and Linux.

import ( "fmt" "github.com/peterh/liner" )

func main() { fmt.Println("\u7ffd\u7ffe\u7fff\u8000\u8001") line := liner.NewLiner() defer line.Close() input, _ := line.Prompt("input: ") fmt.Println(input) }

peterh commented 6 years ago

Thanks for the clear bug report and reproduction example.