X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=pd_readline.c;fp=pd_readline.c;h=0000000000000000000000000000000000000000;hp=044d6efb04e274667dba0eda24c6f1d6f61efe34;hb=050f646dd55e7fef8b2d0dcf5d1740ea8484f9c1;hpb=d56fdb0ce92c92e27ef45a8315ff26c272a1f23d diff --git a/pd_readline.c b/pd_readline.c deleted file mode 100644 index 044d6ef..0000000 --- a/pd_readline.c +++ /dev/null @@ -1,56 +0,0 @@ - - -/* pd_readline.c */ -/* Some code to allow the editing of a command-line. */ -/* You can also move around with the left and right */ -/* arrow keys, and recall previous commands with the */ -/* up-arrow key. */ -/* This code is released to the public domain. */ -/* "Share and enjoy...." ;) */ -/* See the UNLICENSE file for details. */ - -/* TO DO - */ -/* a) Add support for Home and End (of line) keys. */ -/* b) Add support for function keys. */ -/* c) Add support for Insert key so that text can be */ -/* inserted. */ -/* d) Put much of the code into a header file. */ -/* e) Change so that pressing Enter adds the current */ -/* line of commands to the command-history. */ -/* ( May look at using Ctrl-D to exit, as Python */ -/* does with its command-line. ) */ -/* f) Add support for copying and pasting text via */ -/* Ctrl-C and Ctrl-V. */ - - -#include "pd_readline.h" - - -int main(void) -{ - - /* 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(mybuf, myhist); - - } - - return 0; - -} - - - - - -