]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Move sysinstall/sade away from TIOCGSIZE.
authored <ed@FreeBSD.org>
Fri, 23 May 2008 14:24:33 +0000 (14:24 +0000)
committered <ed@FreeBSD.org>
Fri, 23 May 2008 14:24:33 +0000 (14:24 +0000)
commit82e712d5edb03f4ce70cf2a4e76084b692dc32cd
tree2d2798e036e6e624e5f1a19ee5f52df09041e35b
parentbb95365b8cc204ca60208f60048aec80c9810ba4
Move sysinstall/sade away from TIOCGSIZE.

Both sysinstall and sade still seem to use the TIOCGSIZE ioctl to obtain
the terminal dimensions. We'd better use TIOCGWINSZ to do this. The
TIOCGWINSZ interface is preferred, because it also allows sizes in pixels
to be passed to the application (though this is not used here).

Approved by: philip (mentor)
usr.sbin/sade/termcap.c
usr.sbin/sysinstall/termcap.c