Kernel - Implimenting PTYs (untested, unintegrated)
[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 struct ptydims
24 {
25         short   W;
26         short   H;
27 };
28 struct ptymode
29 {
30         unsigned int    OutputMode;
31         unsigned int    InputMode;
32 };
33
34 enum
35 {
36         PTY_IOCTL_GETMODE = 4,
37         PTY_IOCTL_SETMODE,
38         PTY_IOCTL_GETDIMS,
39         PTY_IOCTL_SETDIMS,
40 };
41
42 #endif
43

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