diff --git a/quest.go b/quest.go index ee59486..e13b119 100644 --- a/quest.go +++ b/quest.go @@ -130,11 +130,11 @@ func (q *Question) wait() error { if q.choices { q.print(q.color("?"), " ", "Answer", " ") } - r, err := reader.ReadString('\n') + r, _, err := reader.ReadLine() if err != nil { return err } - q.response = r[:len(r)-1] + q.response = string(r) if abort := q.abort(q.response); abort.value != "" { abort.status = true return nil