Skip to content
provides a nice, portable way to capture user-interrupt signals in lisp
Common Lisp
Branch: master
Clone or download
compufox separated code from package definition
fixed typos (closes #1)
added convenience function to make expanded macro code cleaner (closes #2)
Latest commit 16cc952 Nov 4, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
main.lisp separated code from package definition Nov 4, 2019
package.lisp
with-user-abort.asd

README.md

with-user-abort

ava fox

provides a portable way to capture control-c in your lisp programs

Exports

Macro with-user-abort &body body

executes BODY and captures a user-interrupt (control-c) and signals user-abort condition

Condition user-abort

a simple condition that inherits from your implementation's user-interrupt.

Example

(handler-case
	(with-user-abort (long-running-call))
  (user-abort ()
	(print "Quitting gracefully")
	(uiop:quit 1)))

License

BSD 3-Clause

You can’t perform that action at this time.