While running drafts of mario.c in pset 1 I will at times run a program that has an unintended infinite loop. Is there keystroke combination that I can use to stop the loop and return to the blinking command line prompt?


Yes. To force-exit a running program, press Ctrl + C from your keyboard!

  • 2
    There are also a few more *nix keystroke combinations worth being aware of; see here and here for more information. Ctrl + D is a particular "gotcha" for those unused to it! – Air Aug 20 '14 at 21:27
  • Thanks. Very helpful response for a newbie like myself! – Joseph Youren Aug 21 '14 at 15:51
  • Thank you very much this is very helpful! – David Beede Jul 14 '15 at 1:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .