From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 10.86.59.13 with SMTP id h13cs370868fga; Mon, 1 Mar 2010 06:59:20 -0800 (PST) Received: by 10.224.107.84 with SMTP id a20mr2302127qap.356.1267455558771; Mon, 01 Mar 2010 06:59:18 -0800 (PST) Return-Path: Received: from rubyforge.org (rubyforge.org [205.234.109.19]) by mx.google.com with ESMTP id 4si4274911qwe.56.2010.03.01.06.59.18; Mon, 01 Mar 2010 06:59:18 -0800 (PST) Received-SPF: pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) client-ip=205.234.109.19; Authentication-Results: mx.google.com; spf=pass (google.com: domain of sup-devel-bounces@rubyforge.org designates 205.234.109.19 as permitted sender) smtp.mail=sup-devel-bounces@rubyforge.org Received: from rubyforge.org (rubyforge.org [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 346D21858267; Mon, 1 Mar 2010 09:59:18 -0500 (EST) Received: from peer.zerties.org (peer.zerties.org [188.40.33.175]) by rubyforge.org (Postfix) with ESMTP id DB3341858289 for ; Mon, 1 Mar 2010 09:49:11 -0500 (EST) Received: from stettberger by peer.zerties.org with local (Exim 4.69) (envelope-from ) id 1Nm6vn-0002MS-7V for sup-devel@rubyforge.org; Mon, 01 Mar 2010 15:49:11 +0100 From: Christian Dietrich To: sup-devel In-reply-to: <1264146400-2101-1-git-send-email-rlane@club.cc.cmu.edu> References: <1264146400-2101-1-git-send-email-rlane@club.cc.cmu.edu> Date: Mon, 01 Mar 2010 15:49:08 +0100 Message-Id: <1267454855-sup-1443@peer.zerties.org> User-Agent: Sup/git MIME-Version: 1.0 Subject: Re: [sup-devel] [PATCH] fix textfield truncation X-BeenThere: sup-devel@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: Sup developer discussion List-Id: Sup developer discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1253375517==" Sender: sup-devel-bounces@rubyforge.org Errors-To: sup-devel-bounces@rubyforge.org --===============1253375517== Content-Transfer-Encoding: 8bit Content-Type: multipart/signed; micalg="pgp-sha1"; boundary="=-1267454951-228564-8973-1885-1-="; protocol="application/pgp-signature" --=-1267454951-228564-8973-1885-1-= Content-Type: text/plain; charset=UTF-8 Excerpts from Rich Lane's message of Fr Jan 22 08:46:40 +0100 2010: > Long query strings (for example) are (for some people) silently truncated. > Other people have seen large amounts of whitespace inserted at word boundaries. > These issues are caused by using a multiline text field. This patch uses a > single-line dynamically growable textfield instead. It also disables the > field-blanking misfeature. > --- > lib/sup/textfield.rb | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/lib/sup/textfield.rb b/lib/sup/textfield.rb > index 9afeb34..1c19751 100644 > --- a/lib/sup/textfield.rb > +++ b/lib/sup/textfield.rb > @@ -33,7 +33,9 @@ class TextField > @w, @y, @x, @width = window, y, x, width > @question = question > @completion_block = block > - @field = Ncurses::Form.new_field 1, @width - question.length, @y, @x + question.length, 256, 0 > + @field = Ncurses::Form.new_field 1, @width - question.length, @y, @x + question.length, 0, 0 > + @field.opts_off Ncurses::Form::O_STATIC > + @field.opts_off Ncurses::Form::O_BLANK > @form = Ncurses::Form.new_form [@field] > @value = default || '' > Ncurses::Form.post_form @form Breaks sup here, says opts_off isn't a method, using iU libncurses-ruby1.8 1.2.4-2 ruby Extension for the ncurses C library from debian sid. What version should i use, in order to make this work? greetz didi -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt. --=-1267454951-228564-8973-1885-1-= Content-Disposition: attachment; filename="signature.asc" Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iQIcBAEBAgAGBQJLi9PkAAoJEBQksfbRvb+aXp0QAIkLQC7H5DQ06LmDz+yN38gV L7GgePfM39S4ntjNubGeFTafNw/Il80wks80Nw9GbvrmLdA2M472nVebFbrTSVsR JW8v2DL9iUPUs9qS9mEpalTxI91OrC4uyzoPb72VsyEXYWSuPK6V2aWN50iUnaj8 KEI3W56bXReRFCcXJBMsCH84DZbaTUCkS4k1+LNrqExx8fg1xRWLkDYi1XJqlE4v 5/HaudbParyd47NOUHCAIaftPA+GRO6P5246u4YEorNSVaBHN7KaoIv49IJBtyJq o866kEj2d00293+/nLC+dhl3DlZtyxQB5U5LWnzoCF/QGck0DiC5yrucNXSwdUon d+BY5nLE0KQ60oyUkq0n914yimaavdOONikuwYb/pDkkgzqnzcl74uLixiu/w2nB 3Ji8w3Tp9aNNq/XMYfZXLoU0F74nh2tbIX6GzSln6bqQWOotHwjX8xqrf41FK8xl QmMdeMwFBFI8g7hXHPU63R7tv2KXle8GLjaTWodM8S4pfo7BOR64myi6xXwDaZYj BdA4xN/vR3DksvXWBSNWq5rmX1EIVwaVx27P2a2nNSDHryYTckfNnCm/e4d5+8R/ ZdF66r7SCS6ifjqZnbO1nVjue5X6zoJquGmEWkwoRNLe8XDQ1w6AbfQyLxXPdUNa Dt576dowQO+R/VqS1Nyn =Jh+X -----END PGP SIGNATURE----- --=-1267454951-228564-8973-1885-1-=-- --===============1253375517== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Sup-devel mailing list Sup-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/sup-devel --===============1253375517==--