/* 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. */
+ hist myhist = readhistory("test.txt");
+
while(1)
{
- keyhandler();
-
+ keyhandler(mybuf, myhist);
+
}
return 0;