SGrottel.ConProgBar.CSharp
0.3.0
See the version list below for details.
Requires NuGet 3.3 or higher.
dotnet add package SGrottel.ConProgBar.CSharp --version 0.3.0
NuGet\Install-Package SGrottel.ConProgBar.CSharp -Version 0.3.0
<PackageReference Include="SGrottel.ConProgBar.CSharp" Version="0.3.0" />
paket add SGrottel.ConProgBar.CSharp --version 0.3.0
#r "nuget: SGrottel.ConProgBar.CSharp, 0.3.0"
// Install SGrottel.ConProgBar.CSharp as a Cake Addin #addin nuget:?package=SGrottel.ConProgBar.CSharp&version=0.3.0 // Install SGrottel.ConProgBar.CSharp as a Cake Tool #tool nuget:?package=SGrottel.ConProgBar.CSharp&version=0.3.0
SGrottel.ConProgBar
A simple progress bar for the text console.
https://github.com/sgrottel/ConProgBar
Example
ConProgBar bar = new();
bar.MaximumWidth = Console.WindowWidth - 1;
bar.MinimumWidth = bar.MaximumWidth;
bar.Show = true;
for (int i = 0; i < maxI; ++i)
{
bar.Value = (double)i / maxI;
Thread.Sleep(500);
if (i == 10)
{
bar.Show = false;
Console.WriteLine("Intermission...");
Thread.Sleep(2000);
bar.Show = true;
}
}
bar.Show = false;
License
The code is freely available under terms of the Apache License V2 (see LICENSE)
Copyright 2022-2024 SGrottel
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.