[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: Re: command line editing and line length problems with serial port
From: Paul Fox <pgf () brightstareng ! com>
Date: 2006-06-30 1:31:10
Message-ID: 10281.1151631070 () brightstareng ! com
[Download RAW message or body]
> > 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@brightstareng.com
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic