console.ClearONLCR: move it back

This reverts most of commit 24c05b7, as otherwise it causes
a few regressions (docker cli, TestDockerSwarmSuite/TestServiceLogsTTY).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
Kir Kolyshkin
2021-01-17 20:07:07 -08:00
parent 49cc2a22c3
commit dac0c1e34a
4 changed files with 12 additions and 4 deletions
+3
View File
@@ -106,6 +106,9 @@ func handleSingle(path string, noStdin bool) error {
if err != nil {
return err
}
if err := console.ClearONLCR(c.Fd()); err != nil {
return err
}
// Copy from our stdio to the master fd.
var (