aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Safin <xzfcpw@gmail.com>2020-02-21 02:07:23 +0000
committerAlbert Safin <xzfcpw@gmail.com>2020-02-21 02:07:23 +0000
commitb98b055459f62b11e9cffe249bc311db1d6af53e (patch)
tree001587ab23f5d0bf6274e957ae20cc7f4a40bd4f
parent83c7aff089a6728b6e522d934d656a8e09463112 (diff)
downloadi3-b98b055459f62b11e9cffe249bc311db1d6af53e.tar.gz
i3-b98b055459f62b11e9cffe249bc311db1d6af53e.zip
i3 --moreversion: erase the line before writing over
The trailing part of the line (`abort…)`) has often been appearing in bug reports.
-rw-r--r--src/display_version.c3
1 files changed, 2 insertions, 1 deletions
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;