Oh, got it. I just checked "Run in terminal" in the project properties. Thanks anyway.