diff --git a/Userland/pro.cpp b/Userland/pro.cpp index 2307dfc36f..3ab6590cb8 100644 --- a/Userland/pro.cpp +++ b/Userland/pro.cpp @@ -60,10 +60,12 @@ int main(int argc, char** argv) download->on_progress = [&](Optional maybe_total_size, u32 downloaded_size) { fprintf(stderr, "\r\033[2K"); - if (maybe_total_size.has_value()) + if (maybe_total_size.has_value()) { + fprintf(stderr, "\033]9;%d;%d;\033\\", downloaded_size, maybe_total_size.value()); fprintf(stderr, "Download progress: %s / %s", human_readable_size(downloaded_size).characters(), human_readable_size(maybe_total_size.value()).characters()); - else + } else { fprintf(stderr, "Download progress: %s / ???", human_readable_size(downloaded_size).characters()); + } gettimeofday(¤t_time, nullptr); timersub(¤t_time, &prev_time, &time_diff); @@ -77,6 +79,7 @@ int main(int argc, char** argv) prev_time = current_time; }; download->on_finish = [&](bool success, auto& payload, auto, auto&) { + fprintf(stderr, "\033]9;-1;\033\\"); fprintf(stderr, "\n"); if (success) write(STDOUT_FILENO, payload.data(), payload.size());