Merge pull request #181 from mmuman/ctk-ncurses-try4
TODOs: - Check FreeBSD - Adjust Makefile.target
This commit is contained in:
commit
d5d8de7372
10 changed files with 733 additions and 23 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue