X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=funcs.c;h=87e0d505a7a847bec6d66ccca3a2b4e863d2e815;hb=7a1a81d517d3e95f6f9f5dba853fe6d9d8c27ab3;hp=7444e66b7a713889e90102d7ba3b074b2228a9bf;hpb=36403b46c9eec27a672b0cfbfad9a79c7d153dca;p=pd_readline diff --git a/funcs.c b/funcs.c index 7444e66..87e0d50 100644 --- a/funcs.c +++ b/funcs.c @@ -11,11 +11,16 @@ #include #include #include +#include "pd_readline.h" +/* Note - make the up and down funcs return a buffer. */ +/* A line from the history file can be put into the */ +/* array member of the buffer. */ +/* Also test for the top and bottom of the history file. */ /* Move up in history list. */ -int up(int i) +buf up(int i) { @@ -24,7 +29,7 @@ int up(int i) /* Move down in history list. */ -int down(int i) +buf down(int i) { @@ -63,17 +68,21 @@ buf insch(buf b) } +void enter(void) +{ + printf("Enter "); +} + + -/* Function to handle escape sequences. */ -int esc(int i) +/* Function for special key combinations */ +/* (Ctrl, Alt, function keys. */ +int spec(int i) { - - -} - +}