PDA

View Full Version : How to ALWAYS Display Terminal for an Application?




ideal phi
Sep 25, 2010, 11:41 PM
I'm trying to get the Terminal window to pop up when I run my compiled application which has an OpenGL window. I don't use the terminal for debugging and simply outputting data only, but I use it for inputting data as well. I know I can use "Run->Console" in Xcode, but I don't usually run the program through Xcode. Currently, the only way I can do this is by calling the application to run using a Terminal window which I had to open. I rather click the icon and have both windows, the OpenGL and the Terminal, display.
Essentially, the opposite of "-mwindows" does in windows.



kainjow
Sep 26, 2010, 12:21 AM
I don't think there is a way to do this, but could be wrong.

You could make a shortcut for launching from the Terminal by create a .command file (plain text), and putting the full path of the executable inside it. Then give it proper permissions (I think "chmod 755" will do). Now you have a double-clickable file that will open Terminal and execute the command within it (e.g. your app).

ideal phi
Sep 26, 2010, 01:30 AM
Thanks. It's exactly what I wanted.