1 /* Definitions of IOs */
6 static int std_putc(cmd_io_t *cmd_io, int ch) {
12 //int _getkey_nb(void);
13 static int std_getc(cmd_io_t *cmd_io) {
14 return getchar(); /* On UNIX, we don't use non-blocking
16 //return _getkey_nb();
18 static int std_write(cmd_io_t *cmd_io, const void *buf, int count) {
19 return write(1, buf, count);
21 static int std_read(cmd_io_t *cmd_io, void *buf, int count) {
22 return read(0, buf, count);