From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25321 invoked by alias); 2 Mar 2008 16:10:16 -0000 Received: (qmail 25298 invoked by uid 22791); 2 Mar 2008 16:10:15 -0000 X-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL,BAYES_00,J_CHICKENPOX_74,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 02 Mar 2008 16:09:46 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m22G9Zm9026051; Sun, 2 Mar 2008 11:09:35 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [10.11.255.20]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m22G9ZWj021956; Sun, 2 Mar 2008 11:09:35 -0500 Received: from opsy.redhat.com (vpn-14-59.rdu.redhat.com [10.11.14.59]) by pobox.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m22G9ZUb010853; Sun, 2 Mar 2008 11:09:35 -0500 Received: by opsy.redhat.com (Postfix, from userid 500) id 5CD5537811A; Sun, 2 Mar 2008 08:19:04 -0700 (MST) To: Mark Wielaard Cc: Frysk List Subject: Re: Patch: word-wrapping for 'help' output References: <1204409018.3279.56.camel@localhost.localdomain> <1204462060.8622.20.camel@localhost.localdomain> From: Tom Tromey Reply-To: Tom Tromey X-Attribution: Tom Date: Sun, 02 Mar 2008 16:10:00 -0000 In-Reply-To: <1204462060.8622.20.camel@localhost.localdomain> (Mark Wielaard's message of "Sun\, 02 Mar 2008 13\:47\:40 +0100") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.990 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254 X-IsSubscribed: yes Mailing-List: contact frysk-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-owner@sourceware.org X-SW-Source: 2008-q1/txt/msg00107.txt.bz2 >>>>> "Mark" == Mark Wielaard writes: Mark> Hmmm. Might be a bug in jline I guess. Mark> I filed a bug for this issue pointing to this patch. Mark> http://sourceware.org/bugzilla/show_bug.cgi?id=5817 I forgot to mention that I did see a comment in PtyTerminal saying that getTerminalWidth caches the result -- oops, that is bad. At the very least it should be clearing the cache on SIGWINCH. I looked at the code a bit more deeply, and it just runs 'stty size'. It actually looks ok to me, so I don't know what is wrong there. BTW, PtyTerminal.stty uses Runtime.exec. I thought that was a no-no in frysk. Tom