X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=pd_readline.c;h=c92870a1e5e60ce6dde18a642e3cee88aa0dc159;hp=5f000bdab589e4ae81f25b9843ad60965388b9c0;hb=2aac28bc15a87f5fde5daa83352f9f9b675fc635;hpb=36403b46c9eec27a672b0cfbfad9a79c7d153dca diff --git a/pd_readline.c b/pd_readline.c index 5f000bd..c92870a 100644 --- a/pd_readline.c +++ b/pd_readline.c @@ -23,20 +23,24 @@ /* Ctrl-C and Ctrl-V. */ - +#include "pd_readline.h" int main(void) { + /* Create a buffer for the text. */ + buf mybuf; + + /* Read in the command history file. */ - readhistory(); + readhistory("test.txt"); while(1) { - keyhandler(); + keyhandler(mybuf); }