ioctl_vt
ioctls for console terminal and virtual consoles
- Provided by: manpages-dev (Version: 6.17-1)
- Source: manpages
- Report a bug
ioctls for console terminal and virtual consoles
#include <linux/vt.h> /* Definition of VT_* constants */ #include <sys/ioctl.h>
int ioctl(int fd, unsigned long op, void *argp);
The following Linux-specific ioctl(2) operations are supported for console terminals and virtual consoles.
struct vt_mode {
char mode; /* vt mode */
char waitv; /* if set, hang on writes if not active */
short relsig; /* signal to raise on release op */
short acqsig; /* signal to raise on acquisition */
short frsig; /* unused (set to 0) */
};
| VT_AUTO | auto vt switching |
| VT_PROCESS | process controls switching |
| VT_ACKACQ | acknowledge switch |
struct vt_stat {
unsigned short v_active; /* active vt */
unsigned short v_signal; /* signal to send */
unsigned short v_state; /* vt bit mask */
};
struct vt_sizes {
unsigned short v_rows; /* # rows */
unsigned short v_cols; /* # columns */
unsigned short v_scrollsize; /* no longer used */
};
struct vt_consize {
unsigned short v_rows; /* number of rows */
unsigned short v_cols; /* number of columns */
unsigned short v_vlin; /* number of pixel rows
on screen */
unsigned short v_clin; /* number of pixel rows
per character */
unsigned short v_vcol; /* number of pixel columns
on screen */
unsigned short v_ccol; /* number of pixel columns
per character */
};
struct vt_consizecsrpos {
__u16 con_rows; /* number of console rows */
__u16 con_cols; /* number of console columns */
__u16 csr_row; /* current cursor's row */
__u16 csr_col; /* current cursor's column */
};
On success, 0 is returned (except where indicated). On failure, -1 is returned, and errno is set to indicate the error.
Linux.