From owner-cvs-all@FreeBSD.ORG Fri May 23 14:24:33 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EA56F106566C; Fri, 23 May 2008 14:24:33 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id BE13C8FC16; Fri, 23 May 2008 14:24:33 +0000 (UTC) (envelope-from ed@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m4NEOXC7088745; Fri, 23 May 2008 14:24:33 GMT (envelope-from ed@repoman.freebsd.org) Received: (from ed@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4NEOX62088744; Fri, 23 May 2008 14:24:33 GMT (envelope-from ed) Message-Id: <200805231424.m4NEOX62088744@repoman.freebsd.org> From: Ed Schouten Date: Fri, 23 May 2008 14:24:33 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/usr.sbin/sade termcap.c src/usr.sbin/sysinstall termcap.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 May 2008 14:24:34 -0000 ed 2008-05-23 14:24:33 UTC FreeBSD src repository Modified files: usr.sbin/sade termcap.c usr.sbin/sysinstall termcap.c Log: 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) Revision Changes Path 1.37 +4 -4 src/usr.sbin/sade/termcap.c 1.32 +4 -4 src/usr.sbin/sysinstall/termcap.c