Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/vt_core.c
Show First 20 Lines • Show All 809 Lines • ▼ Show 20 Lines | if (console == 0) | ||||
VT_UNLOCK(vd); | VT_UNLOCK(vd); | ||||
} | } | ||||
static int | static int | ||||
vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c) | vt_processkey(keyboard_t *kbd, struct vt_device *vd, int c) | ||||
{ | { | ||||
struct vt_window *vw = vd->vd_curwindow; | struct vt_window *vw = vd->vd_curwindow; | ||||
random_harvest_queue(&c, sizeof(c), 1, RANDOM_KEYBOARD); | random_harvest_queue(&c, sizeof(c), RANDOM_KEYBOARD); | ||||
#if VT_ALT_TO_ESC_HACK | #if VT_ALT_TO_ESC_HACK | ||||
if (c & RELKEY) { | if (c & RELKEY) { | ||||
switch (c & ~RELKEY) { | switch (c & ~RELKEY) { | ||||
case (SPCLKEY | RALT): | case (SPCLKEY | RALT): | ||||
if (vt_enable_altgr != 0) | if (vt_enable_altgr != 0) | ||||
break; | break; | ||||
case (SPCLKEY | LALT): | case (SPCLKEY | LALT): | ||||
vd->vd_kbstate &= ~ALKED; | vd->vd_kbstate &= ~ALKED; | ||||
▲ Show 20 Lines • Show All 2,107 Lines • Show Last 20 Lines |