X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=pd_readline.c;h=8649fc1c036553e33069d19e13ecfce3a86bca96;hb=851ac869ee55686234ae246ab9b5d938aec0f225;hp=5f000bdab589e4ae81f25b9843ad60965388b9c0;hpb=36403b46c9eec27a672b0cfbfad9a79c7d153dca;p=pd_readline diff --git a/pd_readline.c b/pd_readline.c index 5f000bd..8649fc1 100644 --- a/pd_readline.c +++ b/pd_readline.c @@ -23,21 +23,26 @@ /* 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;