From ce73ed1672d0aa79d8ad92942777ec9227c838f8 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 7 Jan 2018 01:20:07 +0100 Subject: fix cr --- console.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'console.go') diff --git a/console.go b/console.go index a29c4ad..388b207 100644 --- a/console.go +++ b/console.go @@ -18,7 +18,11 @@ func NewConsole() *Console { } func (c *Console) Read(p []byte) (int, error) { - return c.r.Read(p) + n, err := c.r.Read(p) + if n > 0 && p[0] == 10 { + p[0] = 13 + } + return n, err } func (c *Console) Write(p []byte) (int, error) { -- cgit v1.2.3