From b98b055459f62b11e9cffe249bc311db1d6af53e Mon Sep 17 00:00:00 2001 From: Albert Safin Date: Fri, 21 Feb 2020 02:07:23 +0000 Subject: [PATCH] i3 --moreversion: erase the line before writing over MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The trailing part of the line (`abort…)`) has often been appearing in bug reports. --- src/display_version.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/display_version.c b/src/display_version.c index da11bff3..e44540e0 100644 --- a/src/display_version.c +++ b/src/display_version.c @@ -98,7 +98,8 @@ void display_running_version(void) { if (state != yajl_status_ok) errx(EXIT_FAILURE, "Could not parse my own reply. That's weird. reply is %.*s", (int)reply_length, reply); - printf("\rRunning i3 version: %s (pid %s)\n", human_readable_version, pid_from_atom); + printf("\r\x1b[K"); + printf("Running i3 version: %s (pid %s)\n", human_readable_version, pid_from_atom); if (loaded_config_file_name) { struct stat sb;