From: ayajiv
Subject: How do you interrupt a program written in Lisp?
Date: 
Message-ID: <bcf7974837de16e3b4769c95526c5ec7@localhost.talkaboutprogramming.com>

From: jtdubs
Subject: Re: How do you interrupt a program written in Lisp?
Date: 
Message-ID: <1106839078.713722.185740@z14g2000cwz.googlegroups.com>
Well, with no details about what Lisp implementation you are using, in
what environment and what you actually mean my "interrupt" this is very
hard to answer.  The best I can do is say "Try Ctrl+C".

Justin Dubs
From: ayajiv
Subject: Re: How do you interrupt a program written in Lisp?
Date: 
Message-ID: <c093863f84b71a5fc60d07c3b3b8971e@localhost.talkaboutprogramming.com>
I am implementing in Common Lisp.
By interrupting the program I mean - at any time during the execution of
the program, whenever I press any key, the program should be able to read
data and then again it should resume the action it was previously doing.
Suggest me how I can do this.
From: Pascal Costanza
Subject: Re: How do you interrupt a program written in Lisp?
Date: 
Message-ID: <ctd5d0$j8i$1@snic.vub.ac.be>
ayajiv wrote:
> I am implementing in Common Lisp.
> By interrupting the program I mean - at any time during the execution of
> the program, whenever I press any key, the program should be able to read
> data and then again it should resume the action it was previously doing.
> Suggest me how I can do this.

Most implementations provide a way to break your program and continue 
execution afterwards. The keys to do that differ across. For example, in 
MCL it's Command+., in the LispWorks IDE there is a button that you can 
click, and so on. You can continue execution by choosing some restart 
that the implementation then offers to you.

Check out the docs of your implementation.


Pascal
From: Peter Seibel
Subject: Re: How do you interrupt a program written in Lisp?
Date: 
Message-ID: <m3acqts7xz.fsf@javamonkey.com>
Pascal Costanza <··@p-cos.net> writes:

> ayajiv wrote:
>> I am implementing in Common Lisp.
>> By interrupting the program I mean - at any time during the execution of
>> the program, whenever I press any key, the program should be able to read
>> data and then again it should resume the action it was previously doing.
>> Suggest me how I can do this.
>
> Most implementations provide a way to break your program ...

Hmmm, I find enough ways to break my programs myself--I don't need
help from the implementation. ;-)

-Peter

-- 
Peter Seibel                                      ·····@javamonkey.com

         Lisp is the red pill. -- John Fraser, comp.lang.lisp