X-Git-Url: https://pd.if.org/git/?p=pd_readline;a=blobdiff_plain;f=funcs.c;fp=funcs.c;h=8ac14c685c0d129e797959084f007ad2ee7a3d14;hp=f298d7a41497952d5f797f45782a0bd560a7a5ed;hb=a2ded27fbbe1d152bcc1927e6decff86e2c940a7;hpb=2aac28bc15a87f5fde5daa83352f9f9b675fc635 diff --git a/funcs.c b/funcs.c index f298d7a..8ac14c6 100644 --- a/funcs.c +++ b/funcs.c @@ -103,11 +103,16 @@ int type(int i) /* Function for special key combinations */ /* (Ctrl, Alt, function keys. */ -int spec(int i) +void spec(void) { - - + int j = getch(); + + if ( ( j == 65 ) ) printf("Up "); + else if ( ( j == 66 ) ) printf("Down "); + else if ( ( j == 67 ) ) printf("Right "); + else if ( ( j == 68 ) ) printf("Left "); + }