Using less in environment without controlling tty
Denys Vlasenko
vda.linux at googlemail.com
Sun Jul 28 21:01:06 UTC 2013
On Friday 26 July 2013 23:42, Harald Becker wrote:
> My current (temporary) fix for this is, to patch Busybox to use
> fd #2 (stderr) als kbd_fd (kbd_fd = 2;) then it is possible to
> redirect output of less to any location you like:
>
> ... | less 2<>/dev/ttyN
>
> This works fine in all tested cases, but needs patching of
> Busybox. So I really like to get a fix for this in main stream.
>
> ... or are there any other suggestions on how to use less in
> such a situation?
Solution #1: get yourself a ctty. This will solve whole slew
of problems, instaed of fixing them one at a time.
Solution #2: implement something like "less --tty TTY"
More information about the busybox
mailing list