Autopilot-CVS: onboard/rev2 loader.c,2.4,2.5
Status: Alpha
Brought to you by:
tramm
|
From: Trammell H. <tr...@us...> - 2003-02-27 05:30:38
|
Update of /cvsroot/autopilot/onboard/rev2
In directory sc8-pr-cvs1:/tmp/cvs-serv21477
Modified Files:
loader.c
Log Message:
Fixed bug of not ignoring escape characters
Index: loader.c
===================================================================
RCS file: /cvsroot/autopilot/onboard/rev2/loader.c,v
retrieving revision 2.4
retrieving revision 2.5
diff -u -d -r2.4 -r2.5
--- loader.c 27 Feb 2003 05:04:48 -0000 2.4
+++ loader.c 27 Feb 2003 05:30:35 -0000 2.5
@@ -402,7 +402,6 @@
run_user();
break;
-
default:
output = '?';
goto out_char;
@@ -469,7 +468,12 @@
putc( '!' );
while(1)
- process_char( getc() );
+ {
+ unsigned char c = getc();
+ if( c == 27 )
+ continue;
+ process_char( c );
+ }
return 0;
}
|