]> pd.if.org Git - pd_readline/blobdiff - pd_readline.h
More work.
[pd_readline] / pd_readline.h
diff --git a/pd_readline.h b/pd_readline.h
new file mode 100644 (file)
index 0000000..021933e
--- /dev/null
@@ -0,0 +1,40 @@
+
+
+/*  pd_readline.h                                      */  
+/*  Header file for pd_readline.                       */ 
+/*  This code is released to the public domain.        */ 
+/*  "Share and enjoy...."  ;)                          */  
+/*  See the UNLICENSE file for details.                */ 
+
+
+/*  Buffer typedef.  */ 
+typedef struct { 
+       int index; 
+       char array[80] ; 
+} buf;  
+
+
+
+/*  Cursor movement funcs. */ 
+int up(int i); 
+int down(int i); 
+buf left(buf b); 
+buf right(buf b); 
+buf delch(buf b); 
+buf insch(buf b); 
+
+/*  Escape-key handling.  */ 
+int esc(int i); 
+
+/*  Other funcs.  */  
+void readhistory(char *fname); 
+int keyhandler(void);  
+
+
+
+
+
+
+
+
+