Code::Blocks Forums

User forums => Help => Topic started by: palcuiealex on February 20, 2013, 12:37:15 pm

Title: Code::Blocks console program problems on OSX
Post by: palcuiealex on February 20, 2013, 12:37:15 pm
I usually do console application programs in CodeBlocks for algorithm problems and have recently switched to an OSX Mountain Lion machine. After installing xCode and CodeBlocks SP1 I have a problem.

When I run a program, a console terminal should appear with the output. This code was in the preferences, but it does not do it's job:

Code
osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'

Is there a possibility I could launch an iTerm2 window?
Title: Re: Code::Blocks console program problems on OSX
Post by: oBFusCATed on February 20, 2013, 02:08:58 pm
Is there a possibility I could launch an iTerm2 window?
Yes, if you iTerm2 has a command line switch which can be used to pass the executable that will be run on the command line.
See -e -x in the help of gnome-terminal and xterm for more information.