mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 08:52:50 +08:00

* Add "Shared" projects for all examples * Update "Colors" example with better TrueColor demo * Use same namespace for all examples
19 lines
508 B
C#
19 lines
508 B
C#
namespace Spectre.Console.Examples
|
|
{
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
AnsiConsole.Write("Hello");
|
|
|
|
// Move the cursor 3 cells to the right
|
|
AnsiConsole.Cursor.Move(CursorDirection.Right, 3);
|
|
AnsiConsole.Write("World");
|
|
|
|
// Move the cursor 5 cells to the left.
|
|
AnsiConsole.Cursor.Move(CursorDirection.Left, 5);
|
|
AnsiConsole.WriteLine("Universe");
|
|
}
|
|
}
|
|
}
|