News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Code::Blocks console program problems on OSX

Started by palcuiealex, February 20, 2013, 12:37:15 PM

Previous topic - Next topic

palcuiealex

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:

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

Is there a possibility I could launch an iTerm2 window?

oBFusCATed

Quote from: palcuiealex on February 20, 2013, 12:37:15 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]