delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/01/13/10:53:26

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sun, 13 Jan 2002 10:53:10 -0500 (CDT)
Message-Id: <20020113.105310.110048496.hiroo.hayashi@computer.org>
To: cwilson AT ece DOT gatech DOT edu
Cc: cygwin AT cygwin DOT com
Subject: Re: progamming with Cygwin GNU Readline Library
From: Hiroo Hayashi <hiroo DOT hayashi AT computer DOT org>
In-Reply-To: <3C411C95.80802@ece.gatech.edu>
References: <20020108 DOT 010257 DOT 68474633 DOT hiroo DOT hayashi AT computer DOT org>
<3C3B2370 DOT 3010701 AT ece DOT gatech DOT edu>
<3C411C95 DOT 80802 AT ece DOT gatech DOT edu>
X-Mailer: Mew version 2.2rc1 on Emacs 20.7 / Mule 4.1 (AOI)
Mime-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019