Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / include_exp / acess / devices / terminal.h
1 /**
2  * \file devices/terminal.h
3  */
4 #ifndef _SYS_DEVICES_TERMINAL_H
5 #define _SYS_DEVICES_TERMINAL_H
6
7 #include <stdint.h>
8
9 enum eDrv_Terminal {
10         TERM_IOCTL_MODETYPE = 4,
11         TERM_IOCTL_WIDTH,
12         TERM_IOCTL_HEIGHT,
13         TERM_IOCTL_QUERYMODE,
14         TERM_IOCTL_FORCESHOW,
15         TERM_IOCTL_GETSETCURSOR,
16         TERM_IOCTL_SETCURSORBITMAP
17 };
18
19
20 struct sTerm_IOCtl_Mode
21 {
22         int16_t ID;             //!< Zero Based index of mode
23         int16_t DriverID;       //!< Driver's ID number (from ::tVideo_IOCtl_Mode)
24         uint16_t        Height; //!< Height
25         uint16_t        Width;  //!< Width
26         uint8_t Depth;  //!< Bits per cell
27         uint8_t Flags;  //!< Flags (1: Text Mode)
28 };
29
30 /**
31  * \brief Terminal Modes
32  */
33 enum eTplTerminal_Modes {
34         /**
35          * \brief UTF-8 Text Mode
36          * Any writes to the terminal file are treated as UTF-8 encoded
37          * strings and reads will also return UTF-8 strings.
38          */
39         TERM_MODE_TEXT,
40         
41         /**
42          * \brief 32bpp Framebuffer
43          * Writes to the terminal file will write to the framebuffer.
44          * Reads will return UTF-32 characters
45          */
46         TERM_MODE_FB,
47         
48         /**
49          * \brief OpenGL 2D/3D
50          * Writes to the terminal file will send 3D commands
51          * Reads will return UTF-32 characters
52          * \note May or may not stay in the spec
53          */
54         TERM_MODE_OPENGL,
55         
56         NUM_TERM_MODES
57 };
58
59 #endif

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