]> pd.if.org Git - pd_readline/blob - funcs.c
Starting cleanup of code.
[pd_readline] / funcs.c
1
2
3 /*  funcs.c                                          */ 
4 /*  Functions to handle cursor movement for          */ 
5 /*  pd_readline.                                     */      
6 /*  This code is released to the public domain.      */ 
7 /*  "Share and enjoy...."  ;)                        */  
8 /*  See the UNLICENSE file for details.              */ 
9
10
11 #include <string.h>   
12 #include <stdio.h> 
13 #include <stdlib.h> 
14
15
16
17 /* Move up in history list. */ 
18 int up(int i) 
19
20   
21
22
23
24
25
26 /* Move down in history list. */ 
27 int down(int i) 
28
29
30
31
32
33
34 /* Move cursor to left. */ 
35 buf left(buf b) 
36 {
37
38
39
40
41
42 /* Move cursor to right. */ 
43 buf right(buf b) 
44
45
46
47
48
49
50 /* Delete a char. */ 
51 buf delch(buf b) 
52
53
54
55
56
57
58 /* Insert a char. */ 
59 buf insch(buf b) 
60
61
62
63
64
65
66
67 /*  Function to handle escape sequences. */ 
68 int esc(int i) 
69
70         
71         
72         
73         
74 }       
75
76
77
78
79
80
81