]> 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 /*  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 /*  Special key handling.  */ 
31 void spec(void); 
32
33
34 /*  Other funcs.  */  
35 void readhistory(char *fname); 
36 void keyhandler(buf b);  
37
38
39
40
41
42
43
44
45