aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 41dcc48..c3c4a70 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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));