Fix control-c handing in CONFIG_CMDLINE_EDITING
PATCH 1/1 Fix control-c handing in CONFIG_CMDLINE_EDITING
Properly pass break code back from readline.
-roger blofeld
common/main.c +3 -2
@@ -937,6 +937,7 @@ int readline (const char *const prompt)#ifdef CONFIG_CMDLINE_EDITING char *p = console_buffer;unsigned int len=MAX_CMDBUF_SIZE ; +int rc;static int initted =0 ;if (!initted) {
@@ -946,8 +947,8 @@ #ifdef CONFIG_CMDLINE_EDITINGputs (prompt); -cread_line (p, &len); -return len; + rc =cread_line (p, &len); +return rc <0 ? rc : len;#else char *p = console_buffer;int n =0 ;/* buffer index */
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: int-fix.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20060731/4a606c8f/attachment.txt
PATCH 1/1 Fix control-c handing in CONFIG_CMDLINE_EDITING
Quoted 2 lines · In message <[email protected]> you wrote:
Properly pass break code back from readline.
Merged. Thanks!
Best regards,
Wolfgang Denk
Signature · 7 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de When a child is taught ... its programmed with simple instructions -- and at some point, if its mind develops properly, it exceeds the sum of what it was taught, thinks independently. -- Dr. Richard Daystrom, "The Ultimate Computer", stardate 4731.3.