[#192] auto-loaded script? — Julian Fondren <julian@...>
Does ruby load any particular scripts upon startup?
13 messages
1999/01/17
[#193] Re: auto-loaded script?
— gotoken@... (GOTO Kentaro)
1999/01/17
In message "[ruby-talk:00192] auto-loaded script?"
[#194] Re: auto-loaded script?
— Julian Fondren <julian@...>
1999/01/18
> >Does ruby load any particular scripts upon startup?
[#195] Re: auto-loaded script?
— matz@... (Yukihiro Matsumoto)
1999/01/18
Hi.
[#197] Re: auto-loaded script?
— Julian Fondren <julian@...>
1999/01/18
> rb_load_file("/home/julian/.rubyrc"); /* this line added */
[#210] Get character with no wait — Gabriel <gabriel@...>
What is the best way to do a getc without waiting; so I can try to grab
8 messages
1999/01/25
[ruby-talk:00209] Re: Rescuing from a ^C?
From:
matz@... (Yukihiro Matsumoto)
Date:
1999-01-22 14:57:39 UTC
List:
ruby-talk #209
In message "[ruby-talk:00207] Re: Rescuing from a ^C?"
on 99/01/22, Kazuhiro HIWADA <hiwada@kuee.kyoto-u.ac.jp> writes:
|> How would I in ruby rescue from a ^C? rescue with no arguments, Interrupt,
|> or SystemExit fail, as does ensure. What I would like to do is allow ^C to
|> escape from a loop, and then to continue the program.
|
|You can trap SIGINT like this,
Or, you can handle it by
begin
...
loop do
...
end
rescue Interrupt
...
end
If you are using threads, notice interrupts will be delivered to the main
thread.
matz.