mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-17 09:22:50 +08:00
21 lines
514 B
C#
21 lines
514 B
C#
using Spectre.Console;
|
|
|
|
namespace Cursor
|
|
{
|
|
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");
|
|
}
|
|
}
|
|
}
|