This is the mail archive of the
ecos-patches@sources.redhat.com
mailing list for the eCos project.
RedBoot - fix ^A handling
- From: Gary Thomas <gary at mlbassoc dot com>
- To: eCos patches <ecos-patches at ecos dot sourceware dot org>
- Date: 05 Dec 2003 05:52:40 -0700
- Subject: RedBoot - fix ^A handling
- Organization: MLB Associates
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
Index: redboot/current/src/io.c
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/redboot/current/src/io.c,v
retrieving revision 1.31
diff -u -5 -p -r1.31 io.c
--- redboot/current/src/io.c 16 Jul 2003 19:08:54 -0000 1.31
+++ redboot/current/src/io.c 4 Dec 2003 21:56:01 -0000
@@ -454,11 +454,11 @@ _rb_gets_preloaded(char *buf, int buflen
}
break;
case CTRL('A'):
// Move insertion point to beginning of line
if (ip != buf) {
- xp = eol;
+ xp = ip;
while (xp-- != buf) {
mon_write_char('\b');
}
}
ip = buf;