aboutsummaryrefslogtreecommitdiff
path: root/src/menu.c
diff options
context:
space:
mode:
authorFranklin Wei <git@fwei.tk>2015-05-22 21:15:45 -0400
committerFranklin Wei <git@fwei.tk>2015-05-22 21:15:45 -0400
commit06d3b96728f44c32a918eac21c6ec2995bf62a94 (patch)
tree4a9c01d4161642af2eb10a699f03c2472a89ccdf /src/menu.c
parent5f5e9ba46eea80c589b6675bf6d4f11f74af7d77 (diff)
downloadmarket-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.zip
market-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.tar.gz
market-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.tar.bz2
market-sim-06d3b96728f44c32a918eac21c6ec2995bf62a94.tar.xz
ncurse-ify the whole thing
Diffstat (limited to 'src/menu.c')
-rw-r--r--src/menu.c6
1 files changed, 3 insertions, 3 deletions
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);