User forums > Help
Code::Blocks console program problems on OSX
(1/1)
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:
--- Code: ---osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script "$SCRIPT"' -e 'end tell'
--- End code ---
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?
--- End quote ---
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.
Navigation
[0] Message Index
Go to full version