Table of Contents

Class EmojiHelper

Namespace
EchoHub.Client.UI
Assembly
EchoHub.Client.dll

Converts emoji grapheme clusters to text shortcodes for safe TUI rendering. Terminal width calculations for emoji are unreliable across different terminals, so we replace them with fixed-width ASCII shortcodes for display only.

public static class EmojiHelper
Inheritance
EmojiHelper
Inherited Members

Methods

ReplaceEmoji(string)

Replace emoji graphemes in the text with :shortcode: equivalents. Non-emoji text passes through unchanged.

public static string ReplaceEmoji(string text)

Parameters

text string

Returns

string