Kernel - Misc fixes and debug in VTerm/PTY, AxWin3 starts again
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / pty.h
1 /*
2  * Acess2 User Core
3  * - By John Hodge (thePowersGang)
4  * 
5  * acess/devices/pty.h
6  * - PTY Device type IOCtls
7  */
8 #ifndef _ACESS_DEVICES_PTY_H_
9 #define _ACESS_DEVICES_PTY_H_
10
11 #include "../devices.h"
12
13 #define PTYIMODE_CANON  0x001
14 #define PTYIMODE_ECHO   0x002
15 #define PTYIMODE_RAW    0x004
16
17 #define PTYOMODE_BUFFMT 0x003
18 #define PTYBUFFMT_TEXT   0x000
19 #define PTYBUFFMT_FB     0x001
20 #define PTYBUFFMT_2DCMD  0x002
21 #define PTYBUFFMT_3DCMD  0x003
22
23 /*
24  * Note: When setting dimensions from a client, it is up to the server what fields are used.
25  * This is usually dependent on the current output mode.
26  */
27 struct ptydims
28 {
29         short   W;
30         short   H;
31         short   PW;
32         short   PH;
33 };
34 struct ptymode
35 {
36         unsigned int    OutputMode;
37         unsigned int    InputMode;
38 };
39
40 enum
41 {
42         PTY_IOCTL_GETMODE = 4,
43         PTY_IOCTL_SETMODE,
44         PTY_IOCTL_GETDIMS,
45         PTY_IOCTL_SETDIMS,
46         PTY_IOCTL_GETID,
47 };
48
49 #endif
50

UCC git Repository :: git.ucc.asn.au