From sy1234 at gmail.com Wed Nov 7 16:19:16 2007 From: sy1234 at gmail.com (Sy Ali) Date: Wed, 7 Nov 2007 16:19:16 -0500 Subject: [Muby-talk] resizing muby Message-ID: <1e55af990711071319q3b46e83j3d503125b81956b@mail.gmail.com> Previous conversation from another thread is below. I wanted to mention that I did some experimentation and gave up because although I knew how to resize the window within X I didn't know how to tell muby to do the update. Now that there's a function I suspect that if I could find that old experimentation I could whip up something hackish that works and could at least be a basis to make something nice. I've been itching for programming for a while now, and I just got some other life stuff out of the way so I'll have time again so I'll put this higher on my todo list. =) On Oct 28, 2007 4:07 PM, Bill Garrett wrote: > Once I overcome that little hurdle, I'll be fine.. :) > > > > On 10/28/07, Martin Kihlgren wrote: > > > > Yes, if you get that working (best way with current source is to just > > bind that character to the function "resize_application!") it would be > > great. > > > > Problem I had was that I never got any char at all when I did screen > > resize (I just turned on verbose mode (CTRL-v) and resized away)... From memesis at gmail.com Wed Nov 7 16:22:15 2007 From: memesis at gmail.com (Bill Garrett) Date: Wed, 7 Nov 2007 13:22:15 -0800 Subject: [Muby-talk] resizing muby In-Reply-To: <1e55af990711071319q3b46e83j3d503125b81956b@mail.gmail.com> References: <1e55af990711071319q3b46e83j3d503125b81956b@mail.gmail.com> Message-ID: <9e78935e0711071322q2374d4c1lf5058b40c03a6652@mail.gmail.com> I THINK that part of it is that we're calling getch on the window, not on the Ncurses object or stdscr itself (I would have to go back and verify this when I have time...) But I did poll the screen for keypresses and bind to resize_application!, and unfortunately it failed. I'm not sure if this is due to resize_application! itself not working. On Nov 7, 2007 1:19 PM, Sy Ali wrote: > Previous conversation from another thread is below. > > I wanted to mention that I did some experimentation and gave up > because although I knew how to resize the window within X I didn't > know how to tell muby to do the update. Now that there's a function I > suspect that if I could find that old experimentation I could whip up > something hackish that works and could at least be a basis to make > something nice. > > I've been itching for programming for a while now, and I just got some > other life stuff out of the way so I'll have time again so I'll put > this higher on my todo list. =) > > > > On Oct 28, 2007 4:07 PM, Bill Garrett wrote: > > Once I overcome that little hurdle, I'll be fine.. :) > > > > > > > > On 10/28/07, Martin Kihlgren wrote: > > > > > > Yes, if you get that working (best way with current source is to just > > > bind that character to the function "resize_application!") it would be > > > great. > > > > > > Problem I had was that I never got any char at all when I did screen > > > resize (I just turned on verbose mode (CTRL-v) and resized away)... > _______________________________________________ > muby-talk mailing list > muby-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/muby-talk > http://rubyforge.org/projects/muby/ > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/muby-talk/attachments/20071107/e1fecfcf/attachment.html From zond at troja.ath.cx Thu Nov 8 16:32:09 2007 From: zond at troja.ath.cx (Martin Kihlgren) Date: Thu, 8 Nov 2007 22:32:09 +0100 Subject: [Muby-talk] resizing muby In-Reply-To: <9e78935e0711071322q2374d4c1lf5058b40c03a6652@mail.gmail.com> References: <1e55af990711071319q3b46e83j3d503125b81956b@mail.gmail.com> <9e78935e0711071322q2374d4c1lf5058b40c03a6652@mail.gmail.com> Message-ID: <20071108213209.GA17046@troja.ath.cx> Well, that is easy to test. Just resize the application, watch the windows be placed in bad places, then do a resize_application! If it works then you know :) I hope you are right regarding the getch stuff! //Martin On Wed, Nov 07, 2007 at 01:22:15PM -0800, Bill Garrett wrote: > I THINK that part of it is that we're calling getch on the window, not on > the Ncurses object or stdscr itself (I would have to go back and verify this > when I have time...) But I did poll the screen for keypresses and bind to > resize_application!, and unfortunately it failed. I'm not sure if this is > due to resize_application! itself not working. > > On Nov 7, 2007 1:19 PM, Sy Ali wrote: > > > Previous conversation from another thread is below. > > > > I wanted to mention that I did some experimentation and gave up > > because although I knew how to resize the window within X I didn't > > know how to tell muby to do the update. Now that there's a function I > > suspect that if I could find that old experimentation I could whip up > > something hackish that works and could at least be a basis to make > > something nice. > > > > I've been itching for programming for a while now, and I just got some > > other life stuff out of the way so I'll have time again so I'll put > > this higher on my todo list. =) > > > > > > > > On Oct 28, 2007 4:07 PM, Bill Garrett wrote: > > > Once I overcome that little hurdle, I'll be fine.. :) > > > > > > > > > > > > On 10/28/07, Martin Kihlgren wrote: > > > > > > > > Yes, if you get that working (best way with current source is to just > > > > bind that character to the function "resize_application!") it would be > > > > great. > > > > > > > > Problem I had was that I never got any char at all when I did screen > > > > resize (I just turned on verbose mode (CTRL-v) and resized away)... > > _______________________________________________ > > muby-talk mailing list > > muby-talk at rubyforge.org > > http://rubyforge.org/mailman/listinfo/muby-talk > > http://rubyforge.org/projects/muby/ > > > _______________________________________________ > muby-talk mailing list > muby-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/muby-talk > http://rubyforge.org/projects/muby/ -- ################################################################### That's the most fun I've had without laughing. -- Woody Allen, on sex ################################################################### From ryan at ryantm.com Wed Nov 14 22:42:53 2007 From: ryan at ryantm.com (Ryan Mulligan) Date: Wed, 14 Nov 2007 21:42:53 -0600 Subject: [Muby-talk] Bug report Message-ID: <6d05b54c0711141942u5a41cb15td31fb746e36ff624@mail.gmail.com> Muby is nice and I found a slight problem. INT Signal not trapped during MUD connection. Steps to reproduce: 1. /connect "quarkmud.com",4000 2. type ctrl-c 3. watch it not work until connection is refused. Ryan Mulligan -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/muby-talk/attachments/20071114/afb82f98/attachment.html From zond at troja.ath.cx Thu Nov 15 04:53:17 2007 From: zond at troja.ath.cx (Martin Kihlgren) Date: Thu, 15 Nov 2007 10:53:17 +0100 Subject: [Muby-talk] Bug report In-Reply-To: <6d05b54c0711141942u5a41cb15td31fb746e36ff624@mail.gmail.com> References: <6d05b54c0711141942u5a41cb15td31fb746e36ff624@mail.gmail.com> Message-ID: <20071115095317.GC2469@troja.ath.cx> Ah, thanks for the praise and the bug report. The bug is fixed in a new version 0.7.4 that I just posted on rubyforge. regards, //Martin Kihlgren On Wed, Nov 14, 2007 at 09:42:53PM -0600, Ryan Mulligan wrote: > Muby is nice and I found a slight problem. > > INT Signal not trapped during MUD connection. > > Steps to reproduce: > > 1. /connect "quarkmud.com",4000 > 2. type ctrl-c > 3. watch it not work until connection is refused. > > > Ryan Mulligan > _______________________________________________ > muby-talk mailing list > muby-talk at rubyforge.org > http://rubyforge.org/mailman/listinfo/muby-talk > http://rubyforge.org/projects/muby/ -- ################################################################### :fulgurate: to flash like lightning -- International House of Logorrhea -- ###################################################################