mirror of
				https://github.com/spectreconsole/spectre.console.git
				synced 2025-10-25 15:19:23 +00: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());
 | |
|         }
 | |
|     }
 | |
| }
 |