Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_terminal.c
Show First 20 Lines • Show All 100 Lines • ▼ Show 20 Lines | |||||
* Terminal emulator routines. | * Terminal emulator routines. | ||||
*/ | */ | ||||
static tf_bell_t termteken_bell; | static tf_bell_t termteken_bell; | ||||
static tf_cursor_t termteken_cursor; | static tf_cursor_t termteken_cursor; | ||||
static tf_putchar_t termteken_putchar; | static tf_putchar_t termteken_putchar; | ||||
static tf_fill_t termteken_fill; | static tf_fill_t termteken_fill; | ||||
static tf_copy_t termteken_copy; | static tf_copy_t termteken_copy; | ||||
static tf_video_lock_t termteken_video_lock; | |||||
static tf_video_unlock_t termteken_video_unlock; | |||||
static tf_param_t termteken_param; | static tf_param_t termteken_param; | ||||
static tf_respond_t termteken_respond; | static tf_respond_t termteken_respond; | ||||
static teken_funcs_t terminal_drawmethods = { | static teken_funcs_t terminal_drawmethods = { | ||||
.tf_bell = termteken_bell, | .tf_bell = termteken_bell, | ||||
.tf_cursor = termteken_cursor, | .tf_cursor = termteken_cursor, | ||||
.tf_putchar = termteken_putchar, | .tf_putchar = termteken_putchar, | ||||
.tf_fill = termteken_fill, | .tf_fill = termteken_fill, | ||||
.tf_copy = termteken_copy, | .tf_copy = termteken_copy, | ||||
.tf_video_lock = termteken_video_lock, | |||||
.tf_video_unlock = termteken_video_unlock, | |||||
.tf_param = termteken_param, | .tf_param = termteken_param, | ||||
.tf_respond = termteken_respond, | .tf_respond = termteken_respond, | ||||
}; | }; | ||||
/* Kernel message formatting. */ | /* Kernel message formatting. */ | ||||
static const teken_attr_t kernel_message = { | static const teken_attr_t kernel_message = { | ||||
.ta_fgcolor = TCHAR_FGCOLOR(TERMINAL_KERN_ATTR), | .ta_fgcolor = TCHAR_FGCOLOR(TERMINAL_KERN_ATTR), | ||||
.ta_bgcolor = TCHAR_BGCOLOR(TERMINAL_KERN_ATTR), | .ta_bgcolor = TCHAR_BGCOLOR(TERMINAL_KERN_ATTR), | ||||
▲ Show 20 Lines • Show All 493 Lines • ▼ Show 20 Lines | |||||
} | } | ||||
static void | static void | ||||
termteken_copy(void *softc, const teken_rect_t *r, const teken_pos_t *p) | termteken_copy(void *softc, const teken_rect_t *r, const teken_pos_t *p) | ||||
{ | { | ||||
struct terminal *tm = softc; | struct terminal *tm = softc; | ||||
tm->tm_class->tc_copy(tm, r, p); | tm->tm_class->tc_copy(tm, r, p); | ||||
} | |||||
static void | |||||
termteken_video_lock(void *softc) | |||||
{ | |||||
struct terminal *tm = softc; | |||||
tm->tm_class->tc_video_lock(tm); | |||||
} | |||||
static void | |||||
termteken_video_unlock(void *softc) | |||||
{ | |||||
struct terminal *tm = softc; | |||||
tm->tm_class->tc_video_unlock(tm); | |||||
} | } | ||||
static void | static void | ||||
termteken_param(void *softc, int cmd, unsigned int arg) | termteken_param(void *softc, int cmd, unsigned int arg) | ||||
{ | { | ||||
struct terminal *tm = softc; | struct terminal *tm = softc; | ||||
tm->tm_class->tc_param(tm, cmd, arg); | tm->tm_class->tc_param(tm, cmd, arg); | ||||
Show All 26 Lines |