]> pd.if.org Git - pd_readline/blob - pd_readline.h
More work.
[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 /*  Buffer funcs. */ 
19 buf set(buf b, int i);
20 void show(buf b);
21 buf up(buf b); 
22 buf down(buf b); 
23 buf left(buf b); 
24 buf right(buf b); 
25 buf delch(buf b); 
26 buf insch(buf b); 
27 void enter(void);  
28 int range(int rstart, int rend, int i);
29 int type(int i); 
30
31
32 /*  Special key handling.  */ 
33 void spec(void); 
34
35
36 /*  Other funcs.  */  
37 buf readhistory(char *fname); 
38 void keyhandler(buf b);  
39
40
41
42
43
44
45
46
47