i3 --moreversion: erase the line before writing over

The trailing part of the line (`abort…)`) has often been appearing in
bug reports.
This commit is contained in:
Albert Safin 2020-02-21 02:07:23 +00:00
parent 83c7aff089
commit b98b055459
1 changed files with 2 additions and 1 deletions

View File

@ -98,7 +98,8 @@ void display_running_version(void) {
if (state != yajl_status_ok) if (state != yajl_status_ok)
errx(EXIT_FAILURE, "Could not parse my own reply. That's weird. reply is %.*s", (int)reply_length, reply); 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) { if (loaded_config_file_name) {
struct stat sb; struct stat sb;