projects
/
apps
/
madtty.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
madtty only need to control colors, let the caller deal with ncurses.
[apps/madtty.git]
/
demo
/
boxshell.c
diff --git
a/demo/boxshell.c
b/demo/boxshell.c
index
505f6b9
..
806a1ff
100644
(file)
--- a/
demo/boxshell.c
+++ b/
demo/boxshell.c
@@
-8,6
+8,7
@@
#include <ncurses.h>
#include <fcntl.h>
#include <ncurses.h>
#include <fcntl.h>
+#include <locale.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
@@
-62,7
+63,16
@@
int main(void)
signal(SIGCHLD, handler);
signal(SIGWINCH, handler);
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 */
getmaxyx(stdscr, screen_h, screen_w);
/* create a window with a frame */