X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=demo%2Fboxshell.c;h=806a1ff2394df7425546c764fc18d545df708dd0;hb=6c58525bf7665386fc72f1c5b1a217764c19f775;hp=505f6b9c0307ec804799555361523938a54f75ae;hpb=c3f780f9456ff7adde5b8041596e200a9b41c588;p=apps%2Fmadtty.git diff --git a/demo/boxshell.c b/demo/boxshell.c index 505f6b9..806a1ff 100644 --- a/demo/boxshell.c +++ b/demo/boxshell.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -62,7 +63,16 @@ int main(void) 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 */