X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=README;h=6835e88ff5c28264c3300c852b5e8ad8a07995cd;hb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;hp=b3a0eca4174a23f22af99ca1d06711d9413a23cb;hpb=a9843085ec916c175bd245a8398f30e6cc03f984;p=pd_readline diff --git a/README b/README index b3a0eca..6835e88 100644 --- a/README +++ b/README @@ -1,23 +1,42 @@ ***** README - pd_readline ***** - This repo is for the (eventual) storage of a public-domain + This repo is for the storage of a public-domain readline-and-command-history implementation. -Update - 24th Aug 2012 - -Added the mg editor files from OpenBSD. -I obtained the code from here - -ftp://ftp.cc.uoc.gr/mirrors/OpenBSD/src/usr.bin/mg/ +FILES: -( It's not so much the editor itself that is the main interest here, -but the line-management code. ) +pd_readline.c - This is a file to test the +implementation. Contains the main() function. -NOTE - in the mg directory, the file "theo.c" is NOT -"public domain" ( but it HAD to be included because of the -humour...... ;) ) +keyhandler.c - Reads the keystrokes and calls +functions to handle them. -Many thanks to the OpenBSD team and the mg devs -(hi Theo - arrrrrrgh, please don't hit me........... ;) ) +funcs.c - Functions to handle the keystrokes. + + +Update - 6th Sep 2012 - + +Almost there! +The code now pretty much works as expected. + +It looks like the stack-smash problem has now +been fixed. I've give the code a pretty good +hammering and it didn't give me problems. + +Pressing Enter still exits the program rather +than storing the existing command-line and "staying +in the program". I hope to change this soon. + +You can edit a command-line (using backspace). +You can move around with left and right-arrow +keys. +Command-history can be recalled from a file with +the up-arrow key, and you can scroll up and down +through the command-history. + +This code is released to the public domain. +"Share and enjoy........ ;) " - mooseman