[libgsystem] console: Print a newline when starting a status line the first time



commit 8bf85b5db308846f4c55984ff73b8ee515b9b1d0
Author: Colin Walters <walters verbum org>
Date:   Wed Jan 15 09:17:56 2014 -0500

    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 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]