From 8bf85b5db308846f4c55984ff73b8ee515b9b1d0 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Wed, 15 Jan 2014 09:17:56 -0500 Subject: console: Print a newline when starting a status line the first time This ensures we're not overwriting any earlier output. --- gsystem-console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gsystem-console.c b/gsystem-console.c index 0b7d946..35477eb 100644 --- a/gsystem-console.c +++ b/gsystem-console.c @@ -358,7 +358,7 @@ gs_console_begin_status_line (GSConsole *console, if (!console->in_status_line) { - guint8 buf[2] = { 0x1B, 0x37 }; + guint8 buf[3] = { (guint8)'\n', 0x1B, 0x37 }; if (!g_output_stream_write_all (out, buf, sizeof (buf), &bytes_written, cancellable, error)) goto out; -- cgit v1.2.1