X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=pd_readline.c;h=044d6efb04e274667dba0eda24c6f1d6f61efe34;hb=d56fdb0ce92c92e27ef45a8315ff26c272a1f23d;hp=c92870a1e5e60ce6dde18a642e3cee88aa0dc159;hpb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;p=pd_readline diff --git a/pd_readline.c b/pd_readline.c index c92870a..044d6ef 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"); - + hist myhist = readhistory("test.txt"); + while(1) { - keyhandler(mybuf); - + keyhandler(mybuf, myhist); + } return 0;