On Tue, Dec 23, 2014 at 11:53 AM, Rich Felker <[email protected]> wrote: > On Tue, Dec 23, 2014 at 11:48:42AM -0800, enh wrote: >> >> Lots of us _do_ have to deal with serial terminals. >> > >> > Yes, I know. >> > >> >> If you export $ROWS and $COLUMNS it'll do that instead of probe, and I >> >> can add a compile-time config symbol to switch it off if you care that >> >> much. >> > >> > Exporting ROWS and COLUMNS precludes runtime size changes though. The >> > correct way to handle size is TIOCGWINSZ. Perhaps you could use >> > TIOCGWINSZ for device numbers that indicate virtual terminal or pty >> > and only fall back to the ugly methods for serial ports? >> >> annoyingly, adb (Android Debug Bridge) doesn't currently pass window >> size changes through, so until someone fixes that Android users count >> as serial port users too :-( > > From the Android side, does adb use a pty? Or is it a usb serial > port device? My impression was that it's the latter but I'm not very > familiar with it.
i'm not an expert -- or i'd have fixed all the stuff worked around by https://github.com/facebook/fb-adb and we wouldn't be having this conversation :-) -- but there's definitely some use of ptys in there. _______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
