#include <ncurses.h>
#include <fcntl.h>
+#include <locale.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
signal(SIGCHLD, handler);
signal(SIGWINCH, handler);
- madtty_initialize();
+ setlocale(LC_ALL, "");
+ initscr();
+ start_color();
+ noecho();
+ raw();
+ nodelay(stdscr, TRUE);
+ keypad(stdscr, TRUE);
+ curs_set(0);
+ ESCDELAY=50;
+ madtty_init_colors();
getmaxyx(stdscr, screen_h, screen_w);
/* create a window with a frame */