2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Filesystem that uses console device for input/output.
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
26 #define INP_SHIFT_DELETE 12
28 #define INP_LINEFEED 14
30 #define INP_SHIFT_TAB 16
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
56 #define INP_CONTROL_X 42
59 #define INP_PAGEDOWN 45
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
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
);