diff options
author | wrmr | 2024-11-06 02:09:26 -0500 |
---|---|---|
committer | wrmr | 2024-11-06 02:09:26 -0500 |
commit | a3f7fb80590705c1a7d7b42edd8f5f1362f09cfa (patch) | |
tree | 8d12c8f92c13c327571e77b8604b25801520afc7 /main.c | |
parent | d2c280d441ddf974c90447d0a9252f5711802304 (diff) |
MORE prompt
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c index 3026e23..2150d57 100644 --- a/main.c +++ b/main.c @@ -74,8 +74,8 @@ void cmd_trim(char *buf, size_t max) { } } -int cmd_get(char *buf, size_t n) { - fputs("* ", stdout); +int cmd_get(char *buf, size_t n, struct nav_state *ns) { + nav_prompt(ns); return !!fgets(buf, n, stdin); } @@ -88,7 +88,7 @@ int main(int argc, const char **argv) { } else { nav_redraw(&ns); } - while (cmd_get(cmd_buf, sizeof cmd_buf)) { + while (cmd_get(cmd_buf, sizeof cmd_buf, &ns)) { cmd_trim(cmd_buf, sizeof cmd_buf); if (cmd_do(cmd_buf, &ns)) { break; |