diff options
| author | Franklin Wei <git@fwei.tk> | 2015-05-22 21:15:45 -0400 |
|---|---|---|
| committer | Franklin Wei <git@fwei.tk> | 2015-05-22 21:15:45 -0400 |
| commit | 06d3b96728f44c32a918eac21c6ec2995bf62a94 (patch) | |
| tree | 4a9c01d4161642af2eb10a699f03c2472a89ccdf /src/menu.c | |
| parent | 5f5e9ba46eea80c589b6675bf6d4f11f74af7d77 (diff) | |
| download | market-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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |