All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m12s
26 lines
458 B
C
26 lines
458 B
C
#include <kb.h>
|
|
#include <limits.h>
|
|
#include <process.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
#include <string.h>
|
|
#include <terminal.h>
|
|
|
|
void app_main (void) {
|
|
int ce_pid = exec ("ramdisk:/ce");
|
|
int ce_pgid = get_procgroup (ce_pid);
|
|
|
|
for (;;) {
|
|
int ch = kb_read_key ();
|
|
|
|
if (ch <= 0)
|
|
continue;
|
|
|
|
mail_send (ce_pgid, (uint8_t*)&ch, 1);
|
|
|
|
/* char rcv; */
|
|
/* mail_receive (&rcv, 1); */
|
|
/* terminal_print (&rcv, 1); */
|
|
}
|
|
}
|