From d0a4b8dd97d960eaf1922e773f6dc376ec96f8d9 Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 15 Jan 2018 23:12:11 +0100 Subject: provided code to set title of list menu --- asciifarm/client/inputhandling.hy | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'asciifarm/client/inputhandling.hy') diff --git a/asciifarm/client/inputhandling.hy b/asciifarm/client/inputhandling.hy index 64b67e7..9c3e254 100644 --- a/asciifarm/client/inputhandling.hy +++ b/asciifarm/client/inputhandling.hy @@ -10,7 +10,7 @@ (setv self.connection connection) (setv self.commands None)) - (defn readCommands [self commandsstring] + (defn readCommands [self commandsstring] (do (setv self.commands (dict-comp (str key) @@ -20,7 +20,8 @@ (fn [handler] (fn [] ~value)))) self) - [[key value] (.items (read-str commandsstring))]))) + [[key value] (.items (read-str commandsstring))])) + ((.get self.commands "init" (fn []))))) (defn runCommand [self commandstring] (try -- cgit