Hi, Anyone on the list manage to build readline on Windows with VC++ 8? If so, would you mind sharing the .so file? And then, if you don''t mind, could you tell us how you did it? Thanks, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
On Thu, Oct 16, 2008 at 1:00 PM, Berger, Daniel <Daniel.Berger at qwest.com> wrote:> Hi, > > Anyone on the list manage to build readline on Windows with VC++ 8? If > so, would you mind sharing the .so file? > > And then, if you don''t mind, could you tell us how you did it? >I did succeed on that field, long time ago. Was really hard make all the Makefile patches and source (mostly makefile patches). I think I have a svn copy based on gnuwin32 project source code. The problem with that is GNU Readline is a real mess, and the way the GNU win32 maintainers packaged everything is even worse. I''ll try to find by copy and send those patches to you.> Thanks, >-- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Luis Lavena > Sent: Tuesday, October 21, 2008 12:27 PM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Readline with VC++ 8? > > On Thu, Oct 16, 2008 at 1:00 PM, Berger, Daniel > <Daniel.Berger at qwest.com> wrote: > > Hi, > > > > Anyone on the list manage to build readline on Windows with > VC++ 8? If > > so, would you mind sharing the .so file? > > > > And then, if you don''t mind, could you tell us how you did it? > > > > I did succeed on that field, long time ago. Was really hard > make all the Makefile patches and source (mostly makefile > patches). I think I have a svn copy based on gnuwin32 project > source code. > > The problem with that is GNU Readline is a real mess, and the > way the GNU win32 maintainers packaged everything is even worse.I don''t know very much about what readline actually _does_ other than it''s used for command shell apps. Maybe a pure Win32 version is in order?> I''ll try to find by copy and send those patches to you.Excellent, thanks. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
On Tue, Oct 21, 2008 at 3:37 PM, Berger, Daniel <Daniel.Berger at qwest.com> wrote:> > >> -----Original Message----- >> From: win32utils-devel-bounces at rubyforge.org >> [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of >> Luis Lavena >> Sent: Tuesday, October 21, 2008 12:27 PM >> To: Development and ideas for win32utils projects >> Subject: Re: [Win32utils-devel] Readline with VC++ 8? >> >> On Thu, Oct 16, 2008 at 1:00 PM, Berger, Daniel >> <Daniel.Berger at qwest.com> wrote: >> > Hi, >> > >> > Anyone on the list manage to build readline on Windows with >> VC++ 8? If >> > so, would you mind sharing the .so file? >> > >> > And then, if you don''t mind, could you tell us how you did it? >> > >> >> I did succeed on that field, long time ago. Was really hard >> make all the Makefile patches and source (mostly makefile >> patches). I think I have a svn copy based on gnuwin32 project >> source code. >> >> The problem with that is GNU Readline is a real mess, and the >> way the GNU win32 maintainers packaged everything is even worse. > > I don''t know very much about what readline actually _does_ other than > it''s used for command shell apps.oh, it does a lot of stuff, and sometimes it crashes. The problem is that gnuwin32 package maintainers added some patches that are not part officially of GNU Readline, since GNU ppl believe is not "pure"> Maybe a pure Win32 version is in order? >Yes, please, readline has big problems with win32console or long lines (100 chars) OT: what about deprecating Win32API and moving to ruby-ffi?>> I''ll try to find by copy and send those patches to you. > > Excellent, thanks. >Checked on my backup catalog, is at home, will bring it tomorrow to the office. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams
Hi, <snip>> > Maybe a pure Win32 version is in order? > > > > Yes, please, readline has big problems with win32console or > long lines (100 chars)I''m afraid I''m not qualified. Perhaps you are though?> OT: what about deprecating Win32API and moving to ruby-ffi?It''s only available in Jruby and Rubinius as far as I know, and then only as Beta. Do we have the functions needed already declared in windows-pr? There''s Windows::Console plus the MSVCRT functions. I''m willing to throw Windows 2000 under a bus on this, too, as I''m aware that Windows XP added several console functions that might be desired, or even necessary.> >> I''ll try to find by copy and send those patches to you. > > > > Excellent, thanks. > > > > Checked on my backup catalog, is at home, will bring it > tomorrow to the office.Great, thanks. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
Hi, <snip>> Yes, please, readline has big problems with win32console or > long lines (100 chars) > > OT: what about deprecating Win32API and moving to ruby-ffi? > > >> I''ll try to find by copy and send those patches to you. > > > > Excellent, thanks. > > > > Checked on my backup catalog, is at home, will bring it > tomorrow to the office.I came across "Inline" yesterday. http://rubyforge.org/projects/inline Maybe we can use this instead of readline? Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
On Wed, Oct 22, 2008 at 11:04 AM, Berger, Daniel <Daniel.Berger at qwest.com> wrote:> Hi, > > <snip> > >> Yes, please, readline has big problems with win32console or >> long lines (100 chars) >> >> OT: what about deprecating Win32API and moving to ruby-ffi? >> >> >> I''ll try to find by copy and send those patches to you. >> > >> > Excellent, thanks. >> > >> >> Checked on my backup catalog, is at home, will bring it >> tomorrow to the office. > > I came across "Inline" yesterday. > > http://rubyforge.org/projects/inline > > Maybe we can use this instead of readline? >I wish it was API-compliant with Readline, but it promises (uses Win32API for the low level keyboard events.) BTW, have the backup with me, now need to find the time to upload it for you :-D -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Luis Lavena > Sent: Wednesday, October 22, 2008 8:08 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Readline with VC++ 8? > > On Wed, Oct 22, 2008 at 11:04 AM, Berger, Daniel > <Daniel.Berger at qwest.com> wrote: > > Hi, > > > > <snip> > > > >> Yes, please, readline has big problems with win32console or long > >> lines (100 chars) > >> > >> OT: what about deprecating Win32API and moving to ruby-ffi? > >> > >> >> I''ll try to find by copy and send those patches to you. > >> > > >> > Excellent, thanks. > >> > > >> > >> Checked on my backup catalog, is at home, will bring it > tomorrow to > >> the office. > > > > I came across "Inline" yesterday. > > > > http://rubyforge.org/projects/inline > > > > Maybe we can use this instead of readline? > > > > I wish it was API-compliant with Readline, but it promises > (uses Win32API for the low level keyboard events.)Yeah, I put in a feature request for a "Readline compatibility mode". We''ll see what comes of it. Frankly I think the current Readline API is screwball. It''s a module instead of a class, everything''s a module function, module instance variables being stored in weird ways, etc. And totally undocumented (in p114 anyway). If I can, I''ll just replace the code I use with the Inline equivalent if possible.> BTW, have the backup with me, now need to find the time to > upload it for you :-DThanks! Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
> -----Original Message----- > From: win32utils-devel-bounces at rubyforge.org > [mailto:win32utils-devel-bounces at rubyforge.org] On Behalf Of > Luis Lavena > Sent: Wednesday, October 22, 2008 8:08 AM > To: Development and ideas for win32utils projects > Subject: Re: [Win32utils-devel] Readline with VC++ 8? > > On Wed, Oct 22, 2008 at 11:04 AM, Berger, Daniel > <Daniel.Berger at qwest.com> wrote: > > Hi, > > > > <snip> > > > >> Yes, please, readline has big problems with win32console or long > >> lines (100 chars) > >> > >> OT: what about deprecating Win32API and moving to ruby-ffi? > >> > >> >> I''ll try to find by copy and send those patches to you. > >> > > >> > Excellent, thanks. > >> > > >> > >> Checked on my backup catalog, is at home, will bring it > tomorrow to > >> the office. > > > > I came across "Inline" yesterday. > > > > http://rubyforge.org/projects/inline > > > > Maybe we can use this instead of readline? > > > > I wish it was API-compliant with Readline, but it promises > (uses Win32API for the low level keyboard events.)Oof. This whole time I thought irb required readline to work. Nope. It turns out I was hitting a LoadError bug in irb/init.rb: http://redmine.ruby-lang.org/issues/show/677 Two LoadError bugs in three days! What are the odds?! Anyway, once I fixed that, I was able to use the Rails console. Yay. Still, I think a pure Ruby Readline library would be very welcome in the Ruby world. Regards, Dan This communication is the property of Qwest and may contain confidential or privileged information. Unauthorized use of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender by reply e-mail and destroy all copies of the communication and any attachments.
On Wed, Oct 22, 2008 at 12:56 PM, Berger, Daniel <Daniel.Berger at qwest.com> wrote:> ... > > Oof. This whole time I thought irb required readline to work. Nope. It > turns out I was hitting a LoadError bug in irb/init.rb: > > http://redmine.ruby-lang.org/issues/show/677 > > Two LoadError bugs in three days! What are the odds?! >The odds are really high, is ruby source code, sometimes that stuff is really buried in :-P> Anyway, once I fixed that, I was able to use the Rails console. Yay. >Double yay!> Still, I think a pure Ruby Readline library would be very welcome in the > Ruby world. >Yes indeed, but the ruby tests for it do not provide too much information about it (those are plain silly if you ask me). Maybe RubySpec has something better about it?> Regards, > > DanThis is what I have for readline and VC8: http://gist.github.com/19167 But realized was version 4.3 since version 5 was a complete nightmare to build. I''ll try to see where is that subversion repo and generate a package from it. -- Luis Lavena AREA 17 - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams