diff --git a/CMakeLists.txt b/CMakeLists.txt index 4bd3a59..b252978 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.10) -project(CineIA_CLI VERSION 0.2.0) +project(CineIA_CLI VERSION 0.2.1) # Init CMake cmake_policy(SET CMP0048 NEW) diff --git a/main.cpp b/main.cpp index 214a73b..216cfc5 100644 --- a/main.cpp +++ b/main.cpp @@ -1,4 +1,4 @@ -/* +/* Copyright (c) 2024. Steven Song (izwb-003) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -25,7 +25,7 @@ #include #include -#include +#include #include #include "cineia.h" @@ -458,8 +458,13 @@ int main(int argc, const char* argv[]) { // Build a progress bar indicators::show_console_cursor(false); - indicators::BlockProgressBar bar{ + indicators::ProgressBar bar{ indicators::option::BarWidth{40}, + indicators::option::Start{"["}, + indicators::option::Fill{"="}, + indicators::option::Lead{"="}, + indicators::option::Remainder{" "}, + indicators::option::End{"]"}, indicators::option::ForegroundColor{indicators::Color::green}, indicators::option::ShowElapsedTime{true}, indicators::option::ShowRemainingTime{true}, @@ -548,7 +553,6 @@ int main(int argc, const char* argv[]) { writer.WriteFrame(oFrameBuffer); } - bar.mark_as_completed(); indicators::show_console_cursor(true); printf("Closing files...");