ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 03 Mar 2012 13:53:50 +0100Aborting a Loophttps://ask.sagemath.org/question/8752/aborting-a-loop/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.Fri, 02 Mar 2012 21:24:53 +0100https://ask.sagemath.org/question/8752/aborting-a-loop/Comment by kcrisman for <p>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.</p>
https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20182#post-id-20182Probably Ctrl+C?Fri, 02 Mar 2012 21:49:25 +0100https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20182#post-id-20182Comment by kcrisman for <p>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.</p>
https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20175#post-id-20175I wasn't sure if that was what was being asked, that's all.Sat, 03 Mar 2012 13:53:50 +0100https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20175#post-id-20175Comment by Jason Grout for <p>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.</p>
https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20180#post-id-20180Can you post this as an answer, so the question is officially answered?Sat, 03 Mar 2012 02:45:47 +0100https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20180#post-id-20180Comment by Zaubertrank for <p>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.</p>
https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20181#post-id-20181That works kcrisman, thanks.Sat, 03 Mar 2012 01:13:32 +0100https://ask.sagemath.org/question/8752/aborting-a-loop/?comment=20181#post-id-20181Answer by kcrisman for <p>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.</p>
https://ask.sagemath.org/question/8752/aborting-a-loop/?answer=13329#post-id-13329To abort any Sage computation, press Control+C (that is, the Control/Ctrl key and C simultaneously).Sat, 03 Mar 2012 13:53:38 +0100https://ask.sagemath.org/question/8752/aborting-a-loop/?answer=13329#post-id-13329