Extend CONS_GETINFO ioctl to provide information about size of the currently

displayed font.

MFC after:	2 weeks
This commit is contained in:
Maxim Sobolev 2002-03-16 23:31:15 +00:00
parent 654d58ca24
commit 95bd81d145
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=92459
2 changed files with 2 additions and 0 deletions

View file

@ -738,6 +738,7 @@ scioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct thread *td)
vid_info_t *ptr = (vid_info_t*)data;
if (ptr->size == sizeof(struct vid_info)) {
ptr->m_num = sc->cur_scp->index;
ptr->font_size = scp->font_size;
ptr->mv_col = scp->xpos;
ptr->mv_row = scp->ypos;
ptr->mv_csz = scp->xsize;

View file

@ -225,6 +225,7 @@ struct colors {
struct vid_info {
short size;
short m_num;
u_short font_size;
u_short mv_row, mv_col;
u_short mv_rsz, mv_csz;
struct colors mv_norm,