This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace ConsoleAnimations | |
| { | |
| class MainClass | |
| { | |
| public static void Main(string[] args) | |
| { | |
| Animations spin = new Animations(); | |
| string loadingText = "Loading...."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <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; |