The lineedit.s is attach

and if i do the:

> -               if (num <= 4) {
> +               if (0) {

its running 100% like it should (also the home and end key)
Thanks for fixing this last part , i now can use hush and remove the old
lash from rom

I will do some more extensive testing and wil give a shout to the list if i
find something else


just for my information i was looking in
http://www.busybox.net/cgi-bin/viewcvs.cgi/branches/busybox_1_8_stable/libbb
/lineedit.c?rev=20160&view=markup



to find when this code was edit (and why) but the cvs is not giving me te
results
is it broken?

one more question for the list:
is the job control option of any use for a NOMMU system? (i understand its
use, but im not sure if its of any use for nommu)




> -----Oorspronkelijk bericht-----
> Van: Denys Vlasenko [mailto:[EMAIL PROTECTED]
> Verzonden: zaterdag 16 februari 2008 15:10
> Aan: Martinb_ARM_NOMMU_KISSDVD
> CC: [email protected]
> Onderwerp: Re: Command line editing give a wrong result for me on hush
> shell 1.9.1
>
>
> On Saturday 16 February 2008 01:28, Martinb_ARM_NOMMU_KISSDVD wrote:
>
> > 2e test is:"typing abcd{backspace}e{enter}exit{enter}"
> >
> ...
>
> > read(0, "d", 1)                         = 1
> > write(1, "d", 1)                        = 1
> > read(0, "\177", 1)                      = 1
> > write(1, " \276\377\217\275\336\337\177\320\363\237\345BL
> \276\377"..., 29)
> > = 29
>
> This is a very good test.
>
> I want yo to do two things. First, add this asm():
>
>         if (cmdedit_x >= num) {
>                 cmdedit_x -= num;
>                 if (num <= 4) {
> asm("# HERE");
>                         printf("\b\b\b\b" + (4-num));
>                         return;
>                 }
>                 printf("\033[%uD", num);
>                 return;
>         }
>
> run "make libbb/lineedit.s" and send me resulting lineedit.s.
>
> Second. Change this line:
>
>         if (cmdedit_x >= num) {
>                 cmdedit_x -= num;
> -               if (num <= 4) {
> +               if (0) {
>                         printf("\b\b\b\b" + (4-num));
>                         return;
>                 }
>                 printf("\033[%uD", num);
>                 return;
>         }
>
> rebuild and check whether editing now works.
> --
> vda

Attachment: lineedit.s.bz2
Description: Binary data

_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to