version 1.2, 2007/10/16 22:41:36 |
version 1.3, 2007/10/29 12:23:06 |
|
|
{ |
{ |
struct fcons_dd *ddp = self->dv_devdata; |
struct fcons_dd *ddp = self->dv_devdata; |
|
|
|
/* link our parent's dv_aux (fcons_handle) to us */ |
|
ddp->fd_fh = self->dv_parent->dv_aux; |
|
|
ddp->fd_currow = 0; |
ddp->fd_currow = 0; |
ddp->fd_curcol = 0; |
ddp->fd_curcol = 0; |
|
|
|
|
fcons_putchar(void *ddp, char ch) |
fcons_putchar(void *ddp, char ch) |
{ |
{ |
struct fcons_dd *fdp = ddp; |
struct fcons_dd *fdp = ddp; |
struct fcons_handle *fhp = &fdp->fd_fh; |
struct fcons_handle *fhp = fdp->fd_fh; |
|
|
/* if we reach screen width */ |
/* if we reach screen width */ |
if (fdp->fd_curcol == (FCONS_WIDTH - 1)) { |
if (fdp->fd_curcol == (FCONS_WIDTH - 1)) { |