Finish getStr split (getStrResult)

This commit is contained in:
2026-07-07 03:28:30 +02:00
parent 5849dddcf0
commit c6dae3cf3d

View File

@@ -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