diff options
Diffstat (limited to 'sys/dev/syscons/schistory.c')
-rw-r--r-- | sys/dev/syscons/schistory.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/syscons/schistory.c b/sys/dev/syscons/schistory.c index 1c5f154..bd9b1d2 100644 --- a/sys/dev/syscons/schistory.c +++ b/sys/dev/syscons/schistory.c @@ -299,6 +299,12 @@ sc_hist_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, DPRINTF(5, ("error:%d, rows:%d, pool:%d\n", error, sc_vtb_rows(scp->history), extra_history_size)); return error; + + case CONS_CLRHIST: + scp = SC_STAT(tp->t_dev); + sc_vtb_clear(scp->history, scp->sc->scr_map[0x20], + SC_NORM_ATTR << 8); + return 0; } return ENOIOCTL; |