How do I get vi to know my window size?
Rob Landley
rob at landley.net
Tue Sep 19 16:49:18 UTC 2006
On Monday 18 September 2006 10:54 pm, Dave Hylands wrote:
> Hi,
>
> I'm using busybox-1.1.2 under linux-2.6.17 on a gumstix.
>
> When I run the vi from busybox over my serial line, it thinks that my
> terminal is 80x24
http://www.busybox.net/lists/busybox/2006-June/022850.html
As you discovered...
> If I ssh into the gumstix then running the above program reports the
> correct size, and running vi works as expected.
Because ssh is setting up a pty.
> My terminal type in both cases is vt100, and the TERM environment
> variable is set appropriately.
$TERM doesn't tell you size.
> So, is it possible to get the terminal size correct when using a serial
> port?
>
> Any insight would be appreciated.
Try:
stty columns 80 rows 25
Rob
--
Never bet against the cheap plastic solution.
More information about the busybox
mailing list