tools-deps

Discuss tools.deps.alpha, tools.build, and the clj/clojure command-line scripts! See also #depstar #clj-new
vemv 2021-01-19T15:23:00.087500Z

How to prevent Ctrl-C from quitting clj? I'm too used to repl-y's meaning of Ctrl-C (which interrupts eval OR discards current unsubmitted input but never quits the repl)

alexmiller 2021-01-19T15:25:10.087900Z

I think that's the default behavior for a Java process (default signal handler)

alexmiller 2021-01-19T15:25:21.088200Z

so you actually would need to install a new signal handler

vemv 2021-01-19T15:25:51.088800Z

thanks, I'll do that!

alexmiller 2021-01-19T15:26:36.089100Z

there is actually a thing in clojure.repl I think that does that

alexmiller 2021-01-19T15:27:50.089300Z

clojure.repl/set-break-handler!

alexmiller 2021-01-19T15:28:10.089600Z

at the very least, that's something to look at

👍 1
alexmiller 2021-01-19T15:56:18.090900Z

the signal handler stuff is a little weird in that it's a very old sun.misc interface. Java made a big push to eradicate all of those a while back but at the time they had no replacement way to do this. afaik, they still don't.

vemv 2021-01-19T16:05:43.091800Z

:) thanks for all the info (clojure.repl/set-break-handler! identity) was quite satisfactory