From c6dae3cf3d1e5970fc009493cde4f8cdd763109a Mon Sep 17 00:00:00 2001 From: sneak Date: Tue, 7 Jul 2026 03:28:30 +0200 Subject: [PATCH] Finish getStr split (getStrResult) --- game/options.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/game/options.go b/game/options.go index 7c3d594..95fe9a2 100644 --- a/game/options.go +++ b/game/options.go @@ -223,6 +223,12 @@ func (g *RogueGame) getStr(opt *string, win *Window) int { g.Msgs.Mpos += len(buf) } + return getStrResult(c) +} + +// getStrResult maps the terminating key to the C return code (options.c +// get_str). +func getStrResult(c byte) int { switch c { case '-': return Minus