aboutsummaryrefslogtreecommitdiff
path: root/console.go
diff options
context:
space:
mode:
Diffstat (limited to 'console.go')
-rw-r--r--console.go6
1 files changed, 5 insertions, 1 deletions
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) {