Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Tue, 08 Jan 2002 01:02:57 -0500 (CDT) Message-Id: <20020108.010257.68474633.hiroo.hayashi@computer.org> To: cygwin AT cygwin DOT com Cc: cwilson AT ece DOT gatech DOT edu Subject: Re: progamming with Cygwin GNU Readline Library From: Hiroo Hayashi In-Reply-To: <3C38BE6C.1080300@ece.gatech.edu> References: <20020106 DOT 143454 DOT 47902771 DOT hiroo DOT hayashi AT computer DOT org> <3C38BE6C DOT 1080300 AT ece DOT gatech DOT edu> X-Mailer: Mew version 2.2rc1 on Emacs 20.7 / Mule 4.1 (AOI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Charles, Charles> Please don't send cygwin related questions to me personal. Charles> This belongs on the cygwin list. I have copied the list and Charles> reset the Reply-To: appropriately. Sorry. I'm not sure I could post cygwin list or not. But I should try it. Charles> 'gcc -static' + -DREADLINE_STATIC Your answer solved my problems. Thank you very much. Charles> Or wait for the next release of cygwin readline, which should Charles> make all of these problems go away. Do you have a rough estimatation when will it be released? If it may take a few months or more, I'll consider to make a new release of my perl module. BTW the test script in my distribution fails on one of tests. It seems a bug of cygwin readline library. The return value of rl_get_screen_size is wrong as follows; The version of Cygwin Readline Library is 4.2-3. bug.c ------------------------------------------------------------------------ #include #include main(){ int row, col; rl_initialize(); 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); } ------------------------------------------------------------------------ ------------------------------------------------------------------------ (HERBIE) hiroo[281] gcc bug.c -lreadline -ltermcap (HERBIE) hiroo[284] echo $LINES $COLUMNS 25 80 (HERBIE) hiroo[282] ./a.exe row=25, col=79 row=10, col=19 ------------------------------------------------------------------------ On my Linux environment a.out prints row=25, col=80 row=10, col=20 Best, Hiroo Hayashi -- 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/