[GRASS-dev] WinGRASS curses issue
    Moritz Lennert 
    mlennert at club.worldonline.be
       
    Thu Nov  1 10:20:55 EDT 2007
    
    
  
I found the problem:
I don't know why but pushing enter gives a CR (carriage return) the very
first time, but from then on always gives NL (newline). But V_call only
checked for the first. Fixed in cvs:
Index: V_call.c
===================================================================
RCS file: /grassrepository/grass6/lib/vask/V_call.c,v
retrieving revision 2.3
retrieving revision 2.4
diff -u -d -r2.3 -r2.4
--- V_call.c	21 Apr 2007 05:33:01 -0000	2.3
+++ V_call.c	1 Nov 2007 14:23:02 -0000	2.4
@@ -307,7 +307,7 @@
 	case NL:
 	    new_answer = (at_answer+1) % num_answers ;
 	    ans_col  = 0 ;
-	    if (lastchar == ESC && newchar == CR)
+	    if (lastchar == ESC && (newchar == CR || newchar == NL))
 		done = 1;
 	    break ;
Moritz
    
    
More information about the grass-dev
mailing list