1 #ifndef_LINUX_VT_H 2 #define_LINUX_VT_H 3
4 /* 0x56 is 'V', to avoid collision with termios and kd */ 5
6 #defineVT_OPENQRY 0x5600 /* find available vt */ 7
8 structvt_mode{ 9 charmode; /* vt mode */ 10 charwaitv; /* if set, hang on writes if not active */ 11 shortrelsig; /* signal to raise on release req */ 12 shortacqsig; /* signal to raise on acquisition */ 13 shortfrsig; /* unused (set to 0) */ 14 };
15 #defineVT_GETMODE 0x5601 /* get mode of active vt */ 16 #defineVT_SETMODE 0x5602 /* set mode of active vt */ 17 #defineVT_AUTO 0x00 /* auto vt switching */ 18 #defineVT_PROCESS 0x01 /* process controls switching */ 19 #defineVT_ACKACQ 0x02 /* acknowledge switch */ 20
21 structvt_stat{ 22 unsignedshortv_active; /* active vt */ 23 unsignedshort v_signal; /* signal to send */ 24 unsignedshortv_state; /* vt bitmask */ 25 };
26 #defineVT_GETSTATE 0x5603 /* get global vt state info */ 27 #define VT_SENDSIG 0x5604 /* signal to send to bitmask of vts */ 28
29 #defineVT_RELDISP 0x5605 /* release display */ 30
31 #defineVT_ACTIVATE 0x5606 /* make vt active */ 32 #defineVT_WAITACTIVE 0x5607 /* wait for vt active */ 33 #defineVT_DISALLOCATE 0x5608 /* free memory associated to vt */ 34
35 structvt_sizes{ 36 unsignedshortv_rows; /* number of rows */ 37 unsignedshortv_cols; /* number of columns */ 38 unsignedshort v_scrollsize; /* number of lines of scrollback */ 39 };
40 #defineVT_RESIZE 0x5609 /* set kernel's idea of screensize */ 41
42 structvt_consize{ 43 unsignedshortv_rows; /* number of rows */ 44 unsignedshortv_cols; /* number of columns */ 45 unsignedshortv_vlin; /* number of pixel rows on screen */ 46 unsignedshortv_clin; /* number of pixel rows per character */ 47 unsignedshortv_vcol; /* number of pixel columns on screen */ 48 unsignedshortv_ccol; /* number of pixel columns per character */ 49 };
50 #defineVT_RESIZEX 0x560A /* set kernel's idea of screensize + more */ 51 #defineVT_LOCKSWITCH 0x560B /* disallow vt switching */ 52 #defineVT_UNLOCKSWITCH 0x560C /* allow vt switching */ 53
54 #endif/* _LINUX_VT_H */