On Friday 06 January 2012 15:15:29 Mike Frysinger wrote:
> On Sunday 18 December 2011 16:34:01 Pali Rohár wrote:
> >  * Ignore ANSI escape codes for moving cursor, which are generated by
> >
> > keyboard
>
> this probably should be behind an appropriate CONFIG knob.  i don't think
> this is relevant to serial users (which are the majority of boards).
> -mike

I think this is also relevant to serial console too. I tried serial console
(over USB) with Nokia N900 on computer (ANSI terminal) and if I pressed cursor
key (UP/DOWN/LEFT/RIGHT) it moved cursor. But in readline function buffer was
stored ANSI sequence. So when I pressed ENTER, u-boot tried to execute that
buffer and showed me error. But it showed error message something like unknown
command <ansi_seq>. ansi_seq was recognized in ansi terminal on computer and
it garbaged output. (for example if asn_seq was move up, error message
continued on previous line...)

This patch ignore ansi codes which can be generated by curosor keys, so there
will not be that bad error messages...

--
Pali Rohár
pali.ro...@gmail.com

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to