mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-12-15 00:15:47 +08:00
Update emoji support
* Add constants for emojis * Move emoji shortcode rendering to Markup * Add documentation * Add example * Add tests
This commit is contained in:
committed by
Patrik Svensson
parent
090b30f731
commit
eeb3f967b6
17
examples/Emojis/Program.cs
Normal file
17
examples/Emojis/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using Spectre.Console;
|
||||
|
||||
namespace Emojis
|
||||
{
|
||||
public static class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
// Markup
|
||||
AnsiConsole.Render(
|
||||
new Panel("[yellow]Hello :globe_showing_europe_africa:![/]")
|
||||
.RoundedBorder()
|
||||
.SetHeader("Markup"));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user