resize timeout handling / grabbing size from stderr doubt
Denis Vlasenko
vda.linux at googlemail.com
Thu Mar 15 19:58:19 UTC 2007
On Thursday 15 March 2007 14:20, Paul Fox wrote:
> > >This leaves us with two possibilities:
> > >a) write esc sequences to *stderr*, read response from stdin.
> > >b) open "/dev/tty" do both writes and reads on it.
> >
> > ack. so a) is fine, thanks for your patience
>
> i still think that using /dev/tty is more correct. what is the
> problem you see with that? by definition the size being requested
> is always for a tty, so why ask on some other fd that may or may
> not be attached to a tty?
You are right. It will not even work (try redirecting stdin/stderr
of current bbox resize - no go.
Why we don't do "/dev/tty"? Reasons:
a) nobody prepared patch yet ;)
b) it will be bigger than current version.
--
vda
More information about the busybox
mailing list