mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Extend CONS_GETINFO ioctl to provide information about size of the currently
displayed font. MFC after: 2 weeks
This commit is contained in:
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
|
@ -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;
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue