From a16a3adc7fbc9ce2ef1510ec5e20f8838d04960e Mon Sep 17 00:00:00 2001 From: Billy Zha Date: Wed, 8 Nov 2023 03:23:09 +0000 Subject: [PATCH] chore(ux): add newline to make TTY output copy friendly (#1180) Signed-off-by: Billy Zha --- cmd/oras/internal/display/console/console.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/oras/internal/display/console/console.go b/cmd/oras/internal/display/console/console.go index 6a932d68a..deda149e0 100644 --- a/cmd/oras/internal/display/console/console.go +++ b/cmd/oras/internal/display/console/console.go @@ -81,7 +81,7 @@ func (c *Console) NewRow() { func (c *Console) OutputTo(upCnt uint, str string) { _, _ = c.Write([]byte(Restore)) _, _ = c.Write([]byte(aec.PreviousLine(upCnt).Apply(str))) - _, _ = c.Write([]byte(" ")) + _, _ = c.Write([]byte("\n")) _, _ = c.Write([]byte(aec.EraseLine(aec.EraseModes.Tail).String())) }