#include "kozos.h"
#include "lib.h"
#include "driver_console.h"
-#include "ipc_display.h"
#include "ntshell.h"
int func_read(char *buf, int cnt)
int func_write(const char *buf, int cnt)
{
int i;
- char tmp[8];
for (i = 0; i < cnt; i++) {
- tmp[0] = buf[i];
- tmp[1] = '\0';
- console_write(tmp);
+ putc(buf[i]);
}
return 0;
}
int func_callback(const char *text, void *extobj)
{
if (strlen(text) > 0) {
- console_write((char *)text);
- console_write("\n");
+ puts((unsigned char *)text);
+ puts("\n");
}
return 0;
}