Author Topic: Code::Blocks console program problems on OSX  (Read 7396 times)

palcuiealex

  • Guest
Code::Blocks console program problems on OSX
« 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13406
    • Travis build status
Re: Code::Blocks console program problems on OSX
« Reply #1 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.
(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!]