From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan-Benedict Glaw Subject: Re: Size of the terminal with curses Date: Thu, 21 Oct 2004 14:05:39 +0200 Sender: linux-c-programming-owner@vger.kernel.org Message-ID: <20041021120539.GD5033@lug-owl.de> References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nXDQvbKKlQZ0aFhK" Return-path: Content-Disposition: inline In-Reply-To: List-Id: To: linux-c-programming@vger.kernel.org --nXDQvbKKlQZ0aFhK Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 2004-10-20 22:11:23 +0200, Tyler wrote in message : > How can I get the size of the terminal (in lines and cols) of the actual= =20 > terminal ? It would be cool if the solution uses some curses function. It's LINES and COLS, see . MfG, JBG --=20 Jan-Benedict Glaw jbglaw@lug-owl.de . +49-172-7608481 = _ O _ "Eine Freie Meinung in einem Freien Kopf | Gegen Zensur | Gegen Krieg = _ _ O fuer einen Freien Staat voll Freier B=FCrger" | im Internet! | im Irak! = O O O ret =3D do_actions((curr | FREE_SPEECH) & ~(NEW_COPYRIGHT_LAW | DRM | TCPA)= ); --nXDQvbKKlQZ0aFhK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFBd6YSHb1edYOZ4bsRAtNFAKCAOh6fmsnLZULWnujyUX3EBBc9AACeP/Ic VKyJcl7TF6u6JLnf0qtqu1E= =Ualm -----END PGP SIGNATURE----- --nXDQvbKKlQZ0aFhK--