Skip to content

Instantly share code, notes, and snippets.

View HandersonMarinho's full-sized avatar

Handerson Marinho HandersonMarinho

View GitHub Profile
@jplebre
jplebre / ConsoleAnimations.cs
Created December 8, 2015 14:49
c# console line animation examples
using System;
namespace ConsoleAnimations
{
class MainClass
{
public static void Main(string[] args)
{
Animations spin = new Animations();
string loadingText = "Loading....";
@gabehesse
gabehesse / StatusBar.cs
Created May 16, 2011 21:59
Status bar in C# console application
/// <summary>
/// Draw a progress bar at the current cursor position.
/// Be careful not to Console.WriteLine or anything whilst using this to show progress!
/// </summary>
/// <param name="progress">The position of the bar</param>
/// <param name="total">The amount it counts</param>
private static void drawTextProgressBar(int progress, int total)
{
//draw empty progress bar
Console.CursorLeft = 0;