]> pd.if.org Git - pd_readline/blob - pd_readline.h
021933e57ed568ce4572c99a5e856ca47f6d18a9
[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 int up(int i); 
20 int down(int i); 
21 buf left(buf b); 
22 buf right(buf b); 
23 buf delch(buf b); 
24 buf insch(buf b); 
25
26 /*  Escape-key handling.  */ 
27 int esc(int i); 
28
29 /*  Other funcs.  */  
30 void readhistory(char *fname); 
31 int keyhandler(void);  
32
33
34
35
36
37
38
39
40