From owner-freebsd-questions@FreeBSD.ORG Thu Sep 16 06:46:47 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5431216A4CF for ; Thu, 16 Sep 2004 06:46:47 +0000 (GMT) Received: from kane.otenet.gr (kane.otenet.gr [195.170.0.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id B54CF43D3F for ; Thu, 16 Sep 2004 06:46:45 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from gothmog.gr (patr530-a109.otenet.gr [212.205.215.109]) i8G6kf3N027789; Thu, 16 Sep 2004 09:46:42 +0300 Received: from gothmog.gr (gothmog [127.0.0.1]) by gothmog.gr (8.13.1/8.13.1) with ESMTP id i8G6iXO2028893; Thu, 16 Sep 2004 09:44:34 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from giorgos@localhost) by gothmog.gr (8.13.1/8.13.1/Submit) id i8G6LERm028705; Thu, 16 Sep 2004 09:21:14 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Thu, 16 Sep 2004 09:21:14 +0300 From: Giorgos Keramidas To: Mike Hauber Message-ID: <20040916062114.GA28638@gothmog.gr> References: <200409151814.39129.m.hauber@mchsi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200409151814.39129.m.hauber@mchsi.com> Phone: +30-2610-312145 Mobile: +30-6944-116520 cc: freebsd-questions@freebsd.org Subject: Re: forcing a wraped output from the prompt X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Sep 2004 06:46:47 -0000 On 2004-09-15 18:14, Mike Hauber wrote: > I seem to remember this question asked before (mayhaps a > different OS), but I'm not finding it anywhere (my wording > is off?) > > Is there any way to force the output of a program to wrap at > the console without redefining the console itself (ie, if I > wanted to wrap the output of something like fortune to 30 > characters, how can I do that at the prompt)? Yes there is. Use stty(1). I'm customarily running my consoles with a 132x25 mode, but sometimes I want to force 100 columns or less (i.e. when I'm reading a web page in elinks or w3m). This is easily done with: $ stty columns 100 and another stty invocation when I'm done to reset columns to 132. - Giorgos