aboutsummaryrefslogtreecommitdiff
path: root/tsalis/src
diff options
context:
space:
mode:
authorPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
committerPaul Oliver <contact@pauloliver.dev>2024-02-29 01:50:44 +0100
commit7b21c44c67b1b61d4606205219264f084fab07ea (patch)
tree82ec242e4247389d9d5006c57ee7319da49b7bf3 /tsalis/src
parent2dc9d118efb64de6ea54a5a9eb4474f8e5ef3145 (diff)
Added randomize command. Added ancestors.
Diffstat (limited to 'tsalis/src')
-rw-r--r--tsalis/src/handler.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/tsalis/src/handler.c b/tsalis/src/handler.c
index 21aa706..a0730ad 100644
--- a/tsalis/src/handler.c
+++ b/tsalis/src/handler.c
@@ -141,6 +141,12 @@ setAutoSave(const char *command)
}
static void
+randomize(void)
+{
+ se_randomize();
+}
+
+static void
clearConsoleLine(void)
{
move(LINES - 1, 0);
@@ -200,6 +206,10 @@ runConsole(void)
case 'a':
setAutoSave(&command[1]);
break;
+
+ case '?':
+ randomize();
+ break;
}
}