jroimartin / gocui

Minimalist Go package aimed at creating Console User Interfaces.
BSD 3-Clause "New" or "Revised" License
9.92k stars 608 forks source link

Invalid \r handling #172

Open martin31821 opened 6 years ago

martin31821 commented 6 years ago

When I write \r to a view, the line is discarded, which is actually wrong, since the only thing a \r should do is to set the cursor, so either we ignore \r, or handle it correctly.

It's broken here

MichaelMure commented 6 years ago

I can confirm the problem, I had to replace windows line ending (\r\n) into unix one (\n) to avoid that.