Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/vt/vt_core.c
Show First 20 Lines • Show All 2,326 Lines • ▼ Show 20 Lines | 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: | case CONS_CLRHIST: | ||||
vtbuf_clearhistory(&vd->vd_curwindow->vw_buf); | vtbuf_clearhistory(&vd->vd_curwindow->vw_buf); | ||||
/* | |||||
* Invalidate the entire visible window; it is not guaranteed | |||||
* that this operation will be immediately followed by a scroll | |||||
* event, so it would otherwise be possible for prior artifacts | |||||
* to remain visible. | |||||
*/ | |||||
VT_LOCK(vd); | |||||
vd->vd_flags |= VDF_INVALID; | |||||
VT_UNLOCK(vd); | |||||
vt_resume_flush_timer(vd->vd_curwindow, 0); | |||||
return (0); | 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; | ||||
▲ Show 20 Lines • Show All 628 Lines • Show Last 20 Lines |