示例#1
0
文件: fbcon.c 项目: Julia117/embox
static void fbcon_diag_putc(const struct diag *diag, char ch) {

	if (!fbcon_current) {
		return;
	}


	vterm_putc(&fbcon_current->vterm, ch);
}
示例#2
0
文件: fbcon.c 项目: Julia117/embox
static ssize_t fbcon_idesc_write(struct idesc *idesc, const void *buf, size_t nbyte) {
	struct fbcon *fbcon = data2fbcon(idesc);
	char *cbuf = (char *) buf;

	while (nbyte--) {
		vterm_putc(&fbcon->vterm, *cbuf++);
	}

	return (ssize_t)((uintptr_t)cbuf - (uintptr_t)buf);
}
示例#3
0
文件: vc.c 项目: kandeshvari/embox
static ssize_t vc_write(struct idesc *desc, const void *buff, size_t size) {
	size_t cnt;
	char *b;

	for (cnt = size, b = (char *) buff; cnt > 0; b++, cnt--) {
		vterm_putc(&vc_vterm, *b);
	}

	return (ssize_t)size;
}