]> pd.if.org Git - pd_readline/blobdiff - funcs.c
More work.
[pd_readline] / funcs.c
diff --git a/funcs.c b/funcs.c
index f298d7a41497952d5f797f45782a0bd560a7a5ed..8ac14c685c0d129e797959084f007ad2ee7a3d14 100644 (file)
--- 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 "); 
+               
 }