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/main.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/main.c')
| -rw-r--r-- | src/main.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -10,10 +10,19 @@ void quit_handler(struct player_t *player) int main(int argc, char *argv[]) { - atexit(cleanup); curl_global_init(CURL_GLOBAL_DEFAULT); + atexit(cleanup); + + initscr(); + echo(); + nocbreak(); + nl(); + scrollok(stdscr, true); + + atexit(endwin); + struct player_t *player = malloc(sizeof(struct player_t)); memset(player, 0, sizeof(struct player_t)); |