X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=pd_readline.c;h=8649fc1c036553e33069d19e13ecfce3a86bca96;hb=851ac869ee55686234ae246ab9b5d938aec0f225;hp=c92870a1e5e60ce6dde18a642e3cee88aa0dc159;hpb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;p=pd_readline diff --git a/pd_readline.c b/pd_readline.c index c92870a..8649fc1 100644 --- a/pd_readline.c +++ b/pd_readline.c @@ -29,19 +29,20 @@ int main(void) { - /* Create a buffer for the text. */ + /* Create a buffer for entered text. */ buf mybuf; - + mybuf.index = 0; + /* Read in the command history file. */ - readhistory("test.txt"); - + buf histbuf = readhistory("test.txt"); + while(1) { - keyhandler(mybuf); - + keyhandler(mybuf); + } return 0;