From a2cbc04f86508708daa09affa5e9d73cc689b2ba Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 3 Aug 2026 17:15:50 -0400 Subject: feat: new color 'command', color tag system implemented --- internal/game/render_help.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'internal/game/render_help.go') diff --git a/internal/game/render_help.go b/internal/game/render_help.go index 4a283d1..e2893b5 100644 --- a/internal/game/render_help.go +++ b/internal/game/render_help.go @@ -7,6 +7,7 @@ import ( "gopkg.in/yaml.v3" "thehouseoficarus/internal/behavior" + "thehouseoficarus/internal/color" "thehouseoficarus/internal/net" "thehouseoficarus/internal/ui" ) @@ -117,8 +118,10 @@ func (g *Game) doHelp(sess *net.Session, topic string) { Title: "Commands", Columns: []string{"Command", "Type", "Description"}, } + commandSpec := g.resolveColor(sess, "command") for _, c := range commandList { - t.Rows = append(t.Rows, []string{c.Name, c.Type, c.Desc}) + name := color.Render(g.colorMode(sess), commandSpec, c.Name) + t.Rows = append(t.Rows, []string{name, c.Type, c.Desc}) } for _, line := range t.Render(unicode, wrapWidth) { sess.WriteLine(line) -- cgit v1.2.3