Ncurses-based CTK backend for the native platform.
This commit is contained in:
parent
8c25ed20d9
commit
25e3f828aa
8 changed files with 604 additions and 2 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