summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2014-01-15 09:17:56 -0500
committerColin Walters <walters@verbum.org>2014-01-15 09:17:56 -0500
commit8bf85b5db308846f4c55984ff73b8ee515b9b1d0 (patch)
tree100c5e7e6302dd26e3273d2b685c9c2928b9b843
parent25f755e086282b17491038b08885d726dcf48303 (diff)
downloadlibgsystem-8bf85b5db308846f4c55984ff73b8ee515b9b1d0.tar.gz
console: Print a newline when starting a status line the first time
This ensures we're not overwriting any earlier output.
-rw-r--r--gsystem-console.c2
1 files changed, 1 insertions, 1 deletions
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;