I was working yesterday on this feature/problem on ncurses tools,
busybox vi has the right size, but i was unable to fix it on the real vim.

ttysize or stty size was reporting "0 0" until i found the "resize" applet

I was in adb shell on the last android versions.

Using the resize applet set the right values and fixes the term size in all
other tools (vim, nano, htop)

I guess some "resize" signal is not handled by android mksh, any idea how i
can trap them ?

PS: in mepis 11 (same putty, LINES and COLUMNS are always correct), but
resize dont set them neither.


2014-07-07 14:01 GMT+02:00 walter harms <[email protected]>:

> I did not check the code but
> with ESC[6n you can ask the terminal for the cursor location.
>
> see:
> man 4 console_codes
>
> re,
>  wh
>
>
> Am 07.07.2014 13:00, schrieb Sunil Saraff:
> > Hi,
> >
> > I am using busybox 1.20.2. In libbb, file lineedit.c, macro
> > ENABLE_FEATURE_EDITING_ASK_TERMINAL
> > is used. I did not understand the use of this functionality. With this
> > feature enabled, just after the shell prompt "]6n" characters are sent.
> If
> > i disable this feature, what could be the impact?
> >
> > Thanks,
> > Sunil
> >
> >
> >
> >
> > _______________________________________________
> > busybox mailing list
> > [email protected]
> > http://lists.busybox.net/mailman/listinfo/busybox
> _______________________________________________
> busybox mailing list
> [email protected]
> http://lists.busybox.net/mailman/listinfo/busybox
>
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to