Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 3527 invoked from network); 28 May 2009 16:35:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 May 2009 16:35:40 -0000 Received: (qmail 81106 invoked by uid 500); 28 May 2009 16:24:10 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 81052 invoked by uid 500); 28 May 2009 16:24:10 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 81042 invoked by uid 99); 28 May 2009 16:24:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2009 16:24:09 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 May 2009 16:24:06 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C168234C1E9 for ; Thu, 28 May 2009 09:23:45 -0700 (PDT) Message-ID: <1418412598.1243527825638.JavaMail.jira@brutus> Date: Thu, 28 May 2009 09:23:45 -0700 (PDT) From: "Jim Jagielski (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (CLI-166) Terminal width detection In-Reply-To: <1896766103.1217259092063.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CLI-166?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12714042#action_12714042 ] Jim Jagielski commented on CLI-166: ----------------------------------- reverted in r779646 > Terminal width detection > ------------------------ > > Key: CLI-166 > URL: https://issues.apache.org/jira/browse/CLI-166 > Project: Commons CLI > Issue Type: New Feature > Components: Help formatter > Reporter: Emmanuel Bourg > Assignee: Jim Jagielski > Fix For: 1.3 > > > HelpFormatter could be improved by adjusting automatically its width to the width of the terminal. The width of the terminal can be retrieved by the stty command on unix systems, on Windows it requires a native call. The JLine project on SourceForge already implements this logic. > http://jline.sourceforge.net > I suggest to add a setAutoWidth(boolean) method in HelpFormatter that will try to get the terminal width. If it fails it'll fall back to the width provided by getWidth(). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.