diff options
Diffstat (limited to 'internal/game/render_help.go')
| -rw-r--r-- | internal/game/render_help.go | 5 |
1 files changed, 4 insertions, 1 deletions
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) |
