]> pd.if.org Git - pd_readline/blobdiff - pd_readline.c
More work.
[pd_readline] / pd_readline.c
index 5f000bdab589e4ae81f25b9843ad60965388b9c0..8649fc1c036553e33069d19e13ecfce3a86bca96 100644 (file)
 /*     Ctrl-C and Ctrl-V.                              */  
 
 
-
+#include "pd_readline.h"    
 
 
 int main(void) 
 { 
   
-  /* Read in the command history file. */ 
-  readhistory();  
+  /* Create a buffer for entered text.  */ 
+  buf mybuf;  
+  mybuf.index = 0;
+   
   
+  /* Read in the command history file. */ 
+  buf histbuf = readhistory("test.txt");  
+    
   
   while(1) 
   {  
        
-    keyhandler();   
-        
+    keyhandler(mybuf);  
+         
   }         
                                       
   return 0;