Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/vt/vt_core.c
Show First 20 Lines • Show All 2,323 Lines • ▼ Show 20 Lines | case CONS_BLANKTIME: | ||||
/* XXX */ | /* XXX */ | ||||
return (0); | return (0); | ||||
case CONS_HISTORY: | case CONS_HISTORY: | ||||
if (*(int *)data < 0) | if (*(int *)data < 0) | ||||
return EINVAL; | return EINVAL; | ||||
if (*(int *)data != vd->vd_curwindow->vw_buf.vb_history_size) | if (*(int *)data != vd->vd_curwindow->vw_buf.vb_history_size) | ||||
vtbuf_sethistory_size(&vd->vd_curwindow->vw_buf, | vtbuf_sethistory_size(&vd->vd_curwindow->vw_buf, | ||||
*(int *)data); | *(int *)data); | ||||
return 0; | return (0); | ||||
case CONS_CLRHIST: | |||||
vtbuf_clearhistory(&vd->vd_curwindow->vw_buf); | |||||
return (0); | |||||
case CONS_GET: | case CONS_GET: | ||||
/* XXX */ | /* XXX */ | ||||
*(int *)data = M_CG640x480; | *(int *)data = M_CG640x480; | ||||
return (0); | return (0); | ||||
case CONS_BELLTYPE: /* set bell type sound */ | case CONS_BELLTYPE: /* set bell type sound */ | ||||
if ((*(int *)data) & CONS_QUIET_BELL) | if ((*(int *)data) & CONS_QUIET_BELL) | ||||
vd->vd_flags |= VDF_QUIET_BELL; | vd->vd_flags |= VDF_QUIET_BELL; | ||||
else | else | ||||
▲ Show 20 Lines • Show All 627 Lines • Show Last 20 Lines |