Exemplo n.º 1
0
static void fbcon_diag_putc(const struct diag *diag, char ch) {

	if (!fbcon_current) {
		return;
	}


	vterm_putc(&fbcon_current->vterm, ch);
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
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;
}