After reading the README, TODO and some part of the source I want to report
the following behaviour

I’m still using the lash (1.2) and I’m starting to switch to hush
(I already need hush for scripting and I want to remove lash so I can spare
some space on the flashrom)

Problem is a bit hard to explain but in general I just see strange
characters if I use the backspace and cursor keys

To make it simple to explain I give some output on strace
1e output is strace attached to a working lash (1.2.0)
and i do type the keys <a> <b> <cursor left> <backspace>

read(0, "a", 1)                         = 1
write(1, "a", 1)                        = 1
read(0, "b", 1)                         = 1
write(1, "b", 1)                        = 1
read(0, "\33", 1)                       = 1
read(0, "[", 1)                         = 1
read(0, "D", 1)                         = 1
write(1, "\10", 1)                      = 1
read(0, "\177", 1)                      = 1
write(1, "\10b \10\10", 5)              = 5
read(0,

so this is giving me the correct results

If I do the exact same thing from hush (1.9.0) I get:

/ # strace -p 219
Process 219 attached - interrupt to quit
read(0, "a", 1)                         = 1
write(1, "a", 1)                        = 1
read(0, "b", 1)                         = 1
write(1, "b", 1)                        = 1
read(0, "\33", 1)                       = 1
read(0, "[", 1)                         = 1
read(0, "D", 1)                         = 1
write(1, " \276\377\217\275\336\337\177\320\363\237\345BL", 14) = 14
read(0, "\177", 1)                      = 1
write(1, " \276\377\217\275\336\337\177\320\363\237\345BLb : \377"..., 30) =
30
read(0,

So I get garbage on my console

Its possible I make some error like I did on the hush compilation (sorry)
but why does lash give me the correct results with lineediting on the same
toolchain?




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

Reply via email to