Lines Matching defs:wschar
299 pcdisplay_getwschar(struct pcdisplayscreen *scr, struct wsdisplay_char *wschar)
305 KASSERT(scr != NULL && wschar != NULL);
307 off = wschar->row * scr->type->ncols + wschar->col;
317 wschar->letter = (chardata & 0x00FF);
318 wschar->flags = 0;
320 if ((attrbyte & 0x08)) wschar->flags |= WSDISPLAY_CHAR_BRIGHT;
321 if ((attrbyte & 0x80)) wschar->flags |= WSDISPLAY_CHAR_BLINK;
322 wschar->foreground = attrbyte & 0x07;
323 wschar->background = (attrbyte >> 4) & 0x07;
329 pcdisplay_putwschar(struct pcdisplayscreen *scr, struct wsdisplay_char *wschar)
335 KASSERT(scr != NULL && wschar != NULL);
337 off = wschar->row * scr->type->ncols + wschar->col;
341 attrbyte = wschar->background & 0x07;
342 if (wschar->flags & WSDISPLAY_CHAR_BLINK) attrbyte |= 0x08;
344 attrbyte |= wschar->foreground & 0x07;
345 if (wschar->flags & WSDISPLAY_CHAR_BRIGHT) attrbyte |= 0x08;
346 chardata = (attrbyte << 8) | wschar->letter;