diff options
Diffstat (limited to 'internal/game/core_hacking.go')
| -rw-r--r-- | internal/game/core_hacking.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/game/core_hacking.go b/internal/game/core_hacking.go index 0dad4c8..fcfde20 100644 --- a/internal/game/core_hacking.go +++ b/internal/game/core_hacking.go @@ -34,7 +34,9 @@ func (g *Game) handleHackingInput(sess *net.Session, input string) { hs.Started = true output, done, won := hs.Minigame.HandleInput(input) - sess.WriteLine(output) + // Minigames author inline color tags (e.g. {C4}...{/}); expand them here + // because Session.WriteLine only handles ANSI, not tag expansion. + sess.WriteLine(g.expandTags(sess, output)) if done { g.endHacking(sess, p, true, won) |
