From 06d3b96728f44c32a918eac21c6ec2995bf62a94 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Fri, 22 May 2015 21:15:45 -0400 Subject: ncurse-ify the whole thing --- src/menu.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/menu.c') diff --git a/src/menu.c b/src/menu.c index cf9226d..d0f8322 100644 --- a/src/menu.c +++ b/src/menu.c @@ -4,10 +4,10 @@ void do_menu(struct player_t *player, const struct command_t *commands, uint len { for(uint i = 0; i < len; ++i) { - printf("%d. %s\n", i + 1, commands[i].name); + output("%d. %s\n", i + 1, commands[i].name); } - printf("%s", prompt); + output("%s", prompt); char *cmdbuf = read_string(); all_lower(cmdbuf); @@ -64,7 +64,7 @@ exec_cmd: if(best_command >= 0) { commands[best_command].handler(player); - printf("\n"); + output("\n"); } free(cmdbuf); -- cgit v1.1