Ask Your Question
0

Aborting a Loop

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

anonymous user

Anonymous

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

Comments

Probably Ctrl+C?

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

That works kcrisman, thanks.

Zaubertrank gravatar imageZaubertrank ( 2012-03-03 01:13:32 +0100 )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 +0100 )edit

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

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

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Stats

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

Seen: 1,181 times

Last updated: Mar 03 '12