[cmucl-help] CTRL+C

Alex Goncharov alex-goncharov at comcast.net
Wed Oct 28 12:44:04 CET 2009


,--- You/Patrick (Wed, 28 Oct 2009 05:30:37 -0400) ----*
|
| Take the following program:
| cmucl -eval '(defun foo () (progn (format t "Hello World~%") (foo))) (foo)'
| 
| What would be the most straight forward way to get CTRL+C to quit back
| to the shell, as opposed to dumping me into a debugger?

Why would you want it?

The non-easiness of leaving Lisp is intentional -- there is often too
much state to lose, and Ctrl-C or -D may be typed by accident.

Use '(quit)', on a CMUCL prompt or in your program.

E.g.

  lisp -eval '(progn (format t "Hello World~%") (quit))'
  
-- Alex -- alex-goncharov at comcast.net --



More information about the cmucl-help mailing list