POV-Ray : Newsgroups : povray.off-topic : how to scheme a cat up? : Re: how to scheme a cat up? Server Time
5 Sep 2024 15:23:19 EDT (-0400)
  Re: how to scheme a cat up?  
From: Daniel Bastos
Date: 19 Aug 2009 10:33:58
Message: <4a8c0d56$1@news.povray.org>
In article <4a8b7a38@news.povray.org>,
Daniel Bastos wrote:

> This cat does not handle exceptions. I might see how that works next.

Looks like this suffices.

(define (sigint v)
  (fprintf (current-error-port) "^C\n"))

;main
(with-handlers ([exn:break? (lambda (v) (sigint v))])
  (cat (vector->list (current-command-line-arguments))))

It's interesting that I need to (exit) from sigint. What if I would
like to ignore that signal, or continue somehow? No idea what to do.

Hey, if you're very curious, there's some information in v. :-)


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.