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