Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3C41AF91.4060307@ece.gatech.edu>
Date: Sun, 13 Jan 2002 11:02:25 -0500
From: Charles Wilson <cwilson@ece.gatech.edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Hiroo Hayashi <hiroo.hayashi@computer.org>
CC: cygwin@cygwin.com
Subject: Re: progamming with Cygwin GNU Readline Library
References: <20020108.010257.68474633.hiroo.hayashi@computer.org>	<3C3B2370.3010701@ece.gatech.edu>	<3C411C95.80802@ece.gatech.edu> <20020113.105310.110048496.hiroo.hayashi@computer.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

Yes, that is correct. I am surprised that it isn't working for you.  I 
got the correct results -- but I was running in an rxvt window.  Are you 
running in a command.com window or something?

(BTW, rl_set_screen_size doesn't seem to actually CHANGE the physical 
size of my rxvt window -- should it?  Or does it merely restrict the 
area of the visible window that readline will use?)

--Chuck

Hiroo Hayashi wrote:

> Charles,
> 
> Charles> Try the readline-4.2a-1 package (along with libreadline5) which were 
> Charles> just announced.  With that package, your bug.c program returns the 
> Charles> correct results...
> 
> I've tried, but still have same wrong result.
> 
> I installed on the next step;
> 	1st setup
> 		readline4.2a-1
> 	2nd setup
> 		libreadline4
> 		libreadline5
> 
> I think this is correct. Am I missing something?
> 
> Hiroo Hayashi
> 
> ------------------------------------------------------------------------
> (HERBIE) hiroo[425] gcc bug.c -static -lreadline -lncurses
> (HERBIE) hiroo[426] ./a.exe
> 4.2a
> row=25, col=79
> row=10, col=19
> (HERBIE) hiroo[427]
> ------------------------------------------------------------------------
> 
> bug.c (not changed)
> ------------------------------------------------------------------------
> #include <stdio.h>
> #include <readline/readline.h>
> main(){
> 	int	row, col;
> 
> 	rl_initialize();
> 
> 	puts(rl_library_version);
> 
> 	rl_get_screen_size(&row, &col);
> 	printf("row=%d, col=%d\n", row, col);
> 
> 	rl_set_screen_size(10, 20);
> 	rl_get_screen_size(&row, &col);
> 	printf("row=%d, col=%d\n", row, col);
> }
> ------------------------------------------------------------------------
> 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

