command line editing and line length problems with serial port
Paul Fox
pgf at brightstareng.com
Thu Jun 29 18:31:10 PDT 2006
> > busybox cmdedit can only handle long lines properly if it knows
> > how wide the screen is. if you use a 132 column emulator, but linux
> > thinks the window is only 80 columns wide, i suspect you'll get
> > that behavior.
>
> in a serial console, the size is never known (stty size will tell you 0 0)
and in that case, i think cmdedit assumes 80 columns, which is often
correct. but not always.
i have a tiny version of the old X11 "resize" utility that
queries the terminal for its dimensions, then tells the kernel
what they are. it's very handy. i can turn it into an applet if
anyone's interested. it solves this problem (both width and
height) for vi, as well.
paul
=---------------------
paul fox, pgf at brightstareng.com
More information about the busybox
mailing list