The Pedigree Project 0.1
ConsoleDefines.h
1/*
2 * Copyright (c) 2008-2014, Pedigree Developers
3 *
4 * Please see the CONTRIB file in the root of the source tree for a full
5 * list of contributors.
6 *
7 * Permission to use, copy, modify, and distribute this software for any
8 * purpose with or without fee is hereby granted, provided that the above
9 * copyright notice and this permission notice appear in all copies.
10 *
11 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
12 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
13 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
14 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
15 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
16 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18 */
19
20#ifndef _CONSOLE_CONSOLE_DEFINES_H
21#define _CONSOLE_CONSOLE_DEFINES_H
22
23#define CONSOLE_READ 1
24#define CONSOLE_WRITE 2
25#define CONSOLE_GETROWS 3
26#define CONSOLE_GETCOLS 4
27#define CONSOLE_DATA_AVAILABLE 5
28#define CONSOLE_REFRESH 10
29#define CONSOLE_FLUSH 11
30
31#define LINEBUFFER_MAXIMUM 2048
32
33#define PTY_BUFFER_SIZE 32768
34
35#define MAX_CONTROL_CHAR 32
36
37#ifndef VINTR
38// c_cc array indices
39#define VINTR 0
40#define VQUIT 1
41#define VERASE 2
42#define VKILL 3
43#define VEOF 4
44#define VTIME 5
45#define VMIN 6
46#define VSWTC 7
47#define VSTART 8
48#define VSTOP 9
49#define VSUSP 10
50#define VEOL 11
51#define VREPRINT 12
52#define VDISCARD 13
53#define VWERASE 14
54#define VLNEXT 15
55#define VEOL2 16
56#endif
57
58extern const char defaultControl[MAX_CONTROL_CHAR];
59
60#endif // _CONSOLE_CONSOLE_DEFINES_H