Merge pull request #181 from mmuman/ctk-ncurses-try4

TODOs:
- Check FreeBSD
- Adjust Makefile.target
This commit is contained in:
Oliver Schmidt 2013-03-31 14:36:30 -07:00
commit d5d8de7372
10 changed files with 733 additions and 23 deletions

View file

@ -43,6 +43,9 @@
#include "contiki.h"
#include "net/netstack.h"
#include "ctk/ctk.h"
#include "ctk/ctk-curses.h"
#include "dev/serial-line.h"
#include "net/uip.h"
@ -188,6 +191,10 @@ main(int argc, char **argv)
process_start(&etimer_process, NULL);
ctimer_init();
#if WITH_GUI
process_start(&ctk_process, NULL);
#endif
set_rime_addr();
queuebuf_init();
@ -263,6 +270,12 @@ main(int argc, char **argv)
}
etimer_request_poll();
#if WITH_GUI
if(console_resize()) {
ctk_restore();
}
#endif /* WITH_GUI */
}
return 0;