6

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?

1 Answer 1

10

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

3
  • 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, 2014 at 21:27
  • Thanks. Very helpful response for a newbie like myself! Aug 21, 2014 at 15:51
  • Thank you very much this is very helpful! Jul 14, 2015 at 1:24

You must log in to answer this question.

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