3 * - By John Hodge (thePowersGang)
6 * - PTY Device type IOCtls
8 #ifndef _ACESS_DEVICES_PTY_H_
9 #define _ACESS_DEVICES_PTY_H_
12 #include "../devices.h"
14 #define PTYSFLAG_ILOCAL 0x001 //!< Input modes are handled in the server process
15 #define PTYSFLAG_SMODE 0x002 //!< Inform server of mode changes by the user
17 #define PTYIMODE_CANON 0x001 //!< Line-buffered input
18 #define PTYIMODE_ECHO 0x002 //!< Echo input characters
19 #define PTYIMODE_RAW 0x004 //!< Disable all input processing
20 #define PTYIMODE_NLCR 0x008 //!< Translate '\n' to '\r' (for old apps)
22 #define PTYOMODE_BUFFMT 0x003
23 #define PTYBUFFMT_TEXT 0x000
24 #define PTYBUFFMT_FB 0x001
25 #define PTYBUFFMT_2DCMD 0x002
26 #define PTYBUFFMT_3DCMD 0x003
29 * Note: When setting dimensions from a client, it is up to the server what fields are used.
30 * This is usually dependent on the current output mode.
41 unsigned int OutputMode;
42 unsigned int InputMode;
47 PTY_IOCTL_GETMODE = 4,