From 9cd4b910ac476398ccfdaf2cee2883cf16286634 Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Fri, 24 Mar 2023 15:44:59 +0200 Subject: [PATCH] Formatting - Added a documentation comment to each member of `ControlCode` --- source/birchwood/protocol/formatting.d | 34 +++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/source/birchwood/protocol/formatting.d b/source/birchwood/protocol/formatting.d index fb79b0f..2219a00 100644 --- a/source/birchwood/protocol/formatting.d +++ b/source/birchwood/protocol/formatting.d @@ -12,17 +12,49 @@ import birchwood.client.exceptions; */ public enum ControlCode: char { + /** + * Reset styling + */ Reset = '\x0F', + /** + * Bold text styling + */ Bolden = '\x02', + + /** + * Italic text styling + */ Italic = '\x1D', + + /** + * Underlined text styling + */ Underline = '\x1F', + + /** + * Strikethough text styling + */ Strikethrough = '\x1E', + + /** + * Monospace text styling + */ Monospace = '\x11', - ReverseColors = '\x16', // NOT UNIVERSALLY SUPPORTED + /** + * Reverse colors (NOTE: not universally supported) + */ + ReverseColors = '\x16', + /** + * ASCII color encoding scheme + */ AsciiColor = '\x03', + + /** + * Hex color encoding scheme + */ HexColor = '\x04' }