]> pd.if.org Git - pd_readline/blob - pd_readline.h
67f844c3f26b6dd49b85e6ae577d508443265efd
[pd_readline] / pd_readline.h
1
2
3 /*  pd_readline.h                                      */  
4 /*  Header file for pd_readline.                       */ 
5 /*  This code is released to the public domain.        */ 
6 /*  "Share and enjoy...."  ;)                          */  
7 /*  See the UNLICENSE file for details.                */ 
8
9
10 /*  Buffer typedef.  */ 
11 typedef struct { 
12         int index; 
13         char array[80] ; 
14 } buf;  
15
16
17
18 /*  Cursor movement funcs. */ 
19 buf up(int i); 
20 buf down(int i); 
21 buf left(buf b); 
22 buf right(buf b); 
23 buf delch(buf b); 
24 buf insch(buf b); 
25 void enter(void);  
26 int range(int rstart, int rend, int i);
27 int type(int i); 
28
29
30 /*  Escape-key handling.  */ 
31 int spec(int i); 
32
33 /*  Other funcs.  */  
34 void readhistory(char *fname); 
35 void keyhandler(buf b);  
36
37
38
39
40
41
42
43
44