https://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112012-07-15T19:44:15ZRuby Issue Tracking SystemRuby master - Feature #6735: curses: support linking against pdcurseshttps://bugs.ruby-lang.org/issues/6735?journal_id=281252012-07-15T19:44:15ZThomasDickey (Thomas dickey)dickey@his.com
<ul></ul><p>Actually, ncurses is "available" for Windows in the sense that it builds and<br>
works there, using MinGW.<br>
<a href="http://invisible-island.net/ncurses/ncurses.faq.html#other_versions" class="external">http://invisible-island.net/ncurses/ncurses.faq.html#other_versions</a><br>
But there are no downloads of binaries (unlike end-user programs such as<br>
lynx and vile, developers generally are able to build their own libraries).</p> Ruby master - Feature #6735: curses: support linking against pdcurseshttps://bugs.ruby-lang.org/issues/6735?journal_id=281292012-07-15T22:31:09Zluislavena (Luis Lavena)luislavena@gmail.com
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Assigned</i></li></ul><p>ThomasDickey (Thomas dickey) wrote:</p>
<blockquote>
<p>Actually, ncurses is "available" for Windows in the sense that it builds and<br>
works there, using MinGW.<br>
<a href="http://invisible-island.net/ncurses/ncurses.faq.html#other_versions" class="external">http://invisible-island.net/ncurses/ncurses.faq.html#other_versions</a></p>
</blockquote>
<p>Thank you for pointing that out.</p>
<p>Interesting that nothing about MinGW is mentioned in the official GNU ncurses page:</p>
<p><a href="http://www.gnu.org/software/ncurses/" class="external">http://www.gnu.org/software/ncurses/</a></p>
<p>But is included in README.MinGW, which states a lot of TODO like Unicode, thread locking and other aspects.</p>
<p>Even by following the instructions and using the right tools, couldn't get a usable ncurses installation to work with, I believe still have some work to be done.</p>
<p>PDCurses has worked for us (RubyInstaller) and now that I'm working on x64 version of Ruby for Windows. The need to keep pdcurses <em>as is</em> is what pushes me to generate this request.</p>
<blockquote>
<p>But there are no downloads of binaries (unlike end-user programs such as<br>
lynx and vile, developers generally are able to build their own libraries).</p>
</blockquote>
<p>While that statement might be good answer for some (build your own) is error prone and time consuming, if wasn't for binary packages installing a Linux distribution today would be tiresome.</p>
<p>In the case of Windows, binaries are for libraries and end user programs are highly valuable due the complexities of compiler toolchain and building those packages.</p> Ruby master - Feature #6735: curses: support linking against pdcurseshttps://bugs.ruby-lang.org/issues/6735?journal_id=281362012-07-16T09:54:17ZThomasDickey (Thomas dickey)dickey@his.com
<ul></ul><p>Actually the page on gnu.org is a copy (with some minor changes) of the file on my site.<br>
I see that my faq didn't provide a link to the 5.8 release where MinGW was listed -<br>
<a href="http://invisible-island.net/ncurses/announce-5.8.html" class="external">http://invisible-island.net/ncurses/announce-5.8.html</a><br>
and you may see that it was one of many changes made since 5.7. However, I agree that<br>
building dll's is time-consuming (I would do this via cross-compiling, but it happens<br>
that the cross-compiling tools aren't quite stable enough to promise that this would<br>
be done routinely).</p> Ruby master - Feature #6735: curses: support linking against pdcurseshttps://bugs.ruby-lang.org/issues/6735?journal_id=281642012-07-17T09:27:38Zluislavena (Luis Lavena)luislavena@gmail.com
<ul></ul><p>Thanks for your time and details Thomas.</p>
<p>However, as mentioned in my previous comment, ncurses does not compile properly with either MinGW or mingw-w64 toolchains that I use to build RubyInstaller.</p>
<p>While getting ncurses to work properly on Windows is a great idea, I personally lack the knowledge or experience on curses to help.</p>
<p>On the other hand, pdcurses, with minor changes, did compile properly with both 32 and 64bits compiler toolchains, which is the reason I'm requesting support for linking against it.</p>
<p>Regards.</p> Ruby master - Feature #6735: curses: support linking against pdcurseshttps://bugs.ruby-lang.org/issues/6735?journal_id=281932012-07-18T16:11:22Zshugo (Shugo Maeda)
<ul><li><strong>Status</strong> changed from <i>Assigned</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>This issue was solved with changeset r36436.<br>
Luis, thank you for reporting this issue.<br>
Your contribution to Ruby is greatly appreciated.<br>
May Ruby be with you.</p>
<hr>
<ul>
<li>ext/curses/extconf.rb: support PDCurses. patched by Luis Lavena.<br>
<a href="/issues/6735">[ruby-core:46485]</a> [Feature <a class="issue tracker-2 status-5 priority-4 priority-default closed" title="Feature: curses: support linking against pdcurses (Closed)" href="https://bugs.ruby-lang.org/issues/6735">#6735</a>]</li>
</ul> Ruby master - Feature #6735: curses: support linking against pdcurseshttps://bugs.ruby-lang.org/issues/6735?journal_id=285272012-07-29T19:43:33ZThomasDickey (Thomas dickey)dickey@his.com
<ul></ul><p>I cannot account for the developer's failure to compile ncurses, since he's<br>
never provided a bug report. However, it's trivial to cross-compile, so<br>
perhaps some progress might be made in that area. I've put a zip-file with<br>
current code here, which I'll update:<br>
<a href="http://invisible-island.net/datafiles/release/mingw32.zip" class="external">http://invisible-island.net/datafiles/release/mingw32.zip</a></p>