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

* Renames Spectre.Cli to Spectre.Console.Cli. * Now uses Verify with Spectre.Console.Cli tests. * Removes some duplicate definitions. Closes #168
25 lines
596 B
C#
25 lines
596 B
C#
using Spectre.Console;
|
|
|
|
namespace EmojiExample
|
|
{
|
|
public static class Program
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
// Show a known emoji
|
|
RenderEmoji();
|
|
|
|
// Show a remapped emoji
|
|
Emoji.Remap("globe_showing_europe_africa", Emoji.Known.GrinningFaceWithSmilingEyes);
|
|
RenderEmoji();
|
|
}
|
|
|
|
private static void RenderEmoji()
|
|
{
|
|
AnsiConsole.Render(
|
|
new Panel("[yellow]Hello :globe_showing_europe_africa:![/]")
|
|
.RoundedBorder());
|
|
}
|
|
}
|
|
}
|