X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=pd_readline.c;fp=pd_readline.c;h=8649fc1c036553e33069d19e13ecfce3a86bca96;hp=c92870a1e5e60ce6dde18a642e3cee88aa0dc159;hb=851ac869ee55686234ae246ab9b5d938aec0f225;hpb=a2ded27fbbe1d152bcc1927e6decff86e2c940a7 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;