X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=demo%2Fboxshell.c;h=15fbc41865b28eeba3bb28fe3fba7356eae49bc0;hb=6be1cb501cb582f98b6d800d7adfd7a42677ea77;hp=505f6b9c0307ec804799555361523938a54f75ae;hpb=c3f780f9456ff7adde5b8041596e200a9b41c588;p=apps%2Fmadtty.git diff --git a/demo/boxshell.c b/demo/boxshell.c index 505f6b9..15fbc41 100644 --- a/demo/boxshell.c +++ b/demo/boxshell.c @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -62,7 +63,17 @@ 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_vt100_graphics(); + madtty_init_colors(); getmaxyx(stdscr, screen_h, screen_w); /* create a window with a frame */