alsa.audio: move handling of XRUN when writting to the slave task
[AROS.git] / rom / filesys / console_handler / support.h
blobc2549c5f0e80c302b337645d0b4321af6a3de1d1
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Filesystem that uses console device for input/output.
6 Lang: english
7 */
9 #define CUR_UP 'A'
10 #define CUR_DOWN 'B'
11 #define CUR_RIGHT 'C'
12 #define CUR_LEFT 'D'
14 #define INP_DONE 0
15 #define INP_CURSORLEFT 1
16 #define INP_CURSORRIGHT 2
17 #define INP_CURSORUP 3
18 #define INP_CURSORDOWN 4
19 #define INP_SHIFT_CURSORLEFT 5
20 #define INP_SHIFT_CURSORRIGHT 6
21 #define INP_SHIFT_CURSORUP 7
22 #define INP_SHIFT_CURSORDOWN 8
23 #define INP_BACKSPACE 9
24 #define INP_SHIFT_BACKSPACE 10
25 #define INP_DELETE 11
26 #define INP_SHIFT_DELETE 12
27 #define INP_RETURN 13
28 #define INP_LINEFEED 14
29 #define INP_TAB 15
30 #define INP_SHIFT_TAB 16
31 #define INP_F1 17
32 #define INP_F2 18
33 #define INP_F3 19
34 #define INP_F4 20
35 #define INP_F5 21
36 #define INP_F6 22
37 #define INP_F7 23
38 #define INP_F8 24
39 #define INP_F9 25
40 #define INP_F10 26
41 #define INP_F11 27
42 #define INP_F12 28
43 #define INP_SHIFT_F1 29
44 #define INP_SHIFT_F2 30
45 #define INP_SHIFT_F3 31
46 #define INP_SHIFT_F4 32
47 #define INP_SHIFT_F5 33
48 #define INP_SHIFT_F6 34
49 #define INP_SHIFT_F7 35
50 #define INP_SHIFT_F8 36
51 #define INP_SHIFT_F9 37
52 #define INP_SHIFT_F10 38
53 #define INP_SHIFT_F11 39
54 #define INP_SHIFT_F12 40
55 #define INP_HELP 41
56 #define INP_CONTROL_X 42
57 #define INP_INSERT 43
58 #define INP_PAGEUP 44
59 #define INP_PAGEDOWN 45
60 #define INP_PAUSE 46
61 #define INP_BREAK 47
62 #define INP_HOME 48
63 #define INP_END 49
64 #define INP_SHIFT_INSERT 50
65 #define INP_SHIFT_PAGEUP 51
66 #define INP_SHIFT_PAGEDOWN 52
67 #define INP_SHIFT_HOME 53
68 #define INP_SHIFT_END 54
69 #define INP_CTRL_C 55
70 #define INP_CTRL_D 56
71 #define INP_CTRL_E 57
72 #define INP_CTRL_F 58
73 #define INP_EOF 59
74 #define INP_PASTE 60
76 #define INP_UNKNOWN 99
77 #define INP_STRING 100
78 #define INP_ECHO_STRING 101
80 BOOL parse_filename(struct filehandle *fh, char *filename, struct NewWindow *nw);
82 void do_write(struct filehandle *fh, APTR data, ULONG length);
83 void do_movecursor(struct filehandle *fh, UBYTE direction, UBYTE howmuch);
84 void do_cursorvisible(struct filehandle *fh, BOOL on);
85 void do_deletechar(struct filehandle *fh);
86 void do_eraseinline(struct filehandle *fh);
87 void do_eraseindisplay(struct filehandle *fh);
89 WORD scan_input(struct filehandle *fh, UBYTE *);
91 void con_read(struct filehandle *fh, struct DosPacket *dp);
92 void answer_read_request(struct filehandle *fh, struct DosPacket *dp, ULONG dp_Arg3);
93 BOOL answer_write_request(struct filehandle *fh, struct DosPacket *dp);
94 void HandlePendingReads(struct filehandle *fh);
96 void add_to_history(struct filehandle *fh);
97 void history_walk(struct filehandle *fh, WORD inp);
99 BOOL process_input(struct filehandle *fh);
101 void replypkt(struct DosPacket *dp, SIPTR res1);
102 void replypkt2(struct DosPacket *dp, SIPTR res1, SIPTR res2);