Ask Your Question

Aborting a Loop

asked 2012-03-02 21:24:53 +0200

anonymous user


Say I have a function which runs a while loop which always evaluates as true and thus keeps running, is there a way to abort this without just closing the terminal all together? Thanks.

edit retag flag offensive close merge delete


Probably Ctrl+C?

kcrisman gravatar imagekcrisman ( 2012-03-02 21:49:25 +0200 )edit

That works kcrisman, thanks.

Zaubertrank gravatar imageZaubertrank ( 2012-03-03 01:13:32 +0200 )edit

Can you post this as an answer, so the question is officially answered?

Jason Grout gravatar imageJason Grout ( 2012-03-03 02:45:47 +0200 )edit

I wasn't sure if that was what was being asked, that's all.

kcrisman gravatar imagekcrisman ( 2012-03-03 13:53:50 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-03-03 13:53:38 +0200

kcrisman gravatar image

To abort any Sage computation, press Control+C (that is, the Control/Ctrl key and C simultaneously).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-03-02 21:24:53 +0200

Seen: 1,139 times

Last updated: Mar 03 '12