changeset 125:17c1e2a38418

target-utils command input: don't emit BEL on error conditions with the new binary-safe fc-iram these BELs get printed as ^G
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Thu, 31 Oct 2013 07:15:32 +0000
parents dfd3110d84e3
children 811b138f1bed
files target-utils/libcommon/cmdentry.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/target-utils/libcommon/cmdentry.c	Thu Oct 31 06:56:31 2013 +0000
+++ b/target-utils/libcommon/cmdentry.c	Thu Oct 31 07:15:32 2013 +0000
@@ -36,7 +36,7 @@
 				command[inlen++] = ch;
 				putchar(ch);
 			} else
-				putchar(7);
+				/* putchar(7) */;
 			continue;
 		}
 		switch (ch) {
@@ -53,7 +53,7 @@
 				putchar('\b');
 				inlen--;
 			} else
-				putchar(7);
+				/* putchar(7) */;
 			continue;
 		case 0x03:	/* ^C */
 			putchar('^');
@@ -66,7 +66,7 @@
 			putchar('\n');
 			return(0);
 		default:
-			putchar(7);
+			/* putchar(7) */;
 		}
 	}
 }