Works perfectly!  Thanks.

On Monday, March 31, 2003, at 11:21 AM, ts wrote:

>>>>>> "D" == David King Landrith <dave / landrith.com> writes:
>
> D> This is exactly the type of elegant solution that I'm looking for.
> D> Unfortunately, this behaves exactly the same as trap 0, proc { 
> endwin
>
>  And with
>
>    $stderr = File.new("/dev/null", "w") # or the windows equivalent
>    at_exit do
>       if $!
>          # do what you want with the error message
>       end
>       endwin
>    end
>
>
> Guy Decoux
>
>
-------------------------------------------------------
David King Landrith
   (w) 617.227.4469x213
   (h) 617.696.7133

One useless man is a disgrace, two
are called a law firm, and three or more
become a congress   -- John Adams
-------------------------------------------------------
public key available upon request