[wxruby-users] New problem: Newlines.

Tim Mcd lists at ruby-forum.com
Thu Jan 8 17:29:39 EST 2009


Alex Fenton wrote:
> Tim Mcd wrote:
>> would that screw with what is already in the main_loop too much?
>>   
> 
> It should work OK, but you'll need to add something like
> 
> Wx::Timer.every(50) { Thread.pass }
> 
> to your main_loop. This will ensure that on Ruby 1.8 your non-GUI ruby
> threads get execution time, otherwise they won't progress.
> 
> Have a look at the threaded.rb and chat client examples in the samples
> directory as they demonstrate threads and network programming.
> 
> hth
> alex

Thanks!

And the problem in the first post is this: When I run in, there is no 
linebreaks. I am trying to make it so that there ARE line breaks via the 
newline character.
-- 
Posted via http://www.ruby-forum.com/.


More information about the wxruby-users mailing list