Date: Fri, 21 Apr 2006 18:23:36 GMT From: Warner Losh <imp@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 95808 for review Message-ID: <200604211823.k3LINajI093666@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=95808 Change 95808 by imp@imp_hammer on 2006/04/21 18:22:46 fix minor bugs processing automatic characters. Affected files ... .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/env_vars.c#5 edit .. //depot/projects/arm/src/sys/boot/arm/at91/libat91/loader_prompt.c#10 edit Differences ... ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/env_vars.c#5 (text+ko) ==== @@ -60,6 +60,7 @@ if (ch == '\0' || (currentOffset >= MAX_INPUT_SIZE)) { currentOffset = 0; ++currentIndex; + ch = '\r'; } return (ch); } ==== //depot/projects/arm/src/sys/boot/arm/at91/libat91/loader_prompt.c#10 (text+ko) ==== @@ -360,23 +360,20 @@ * Each command is terminated with NULL (0) or '\r'. * .KB_C_FN_DEFINITION_END */ -static void ServicePrompt(char p_char) { - - if (p_char == '\r') { +static void +ServicePrompt(char p_char) +{ + if (p_char == '\r') p_char = 0; - } - if (p_char != 0x8) { if (buffCount < MAX_INPUT_SIZE-1) { - inputBuffer[buffCount] = p_char; ++buffCount; putchar(p_char); } } else if (buffCount) { - /* handle backspace BS */ --buffCount; inputBuffer[buffCount] = 0;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604211823.k3LINajI093666>