So, I'm working on a custom makefile script (for TinyOS, if anyone cares) that builds a file and then runs it in a simulator.
The problem is that the simulator takes it's input from standard in, and if I run the makefile from the eclipse plugin that my team and I use, I'm unable to actually enter any commands into it.
I've worked around the issue by using the line
gnome-terminal --title="MSPSim Terminal" -x mspsim build/telosb/main.elf
Now, this obviously only works if the user is a) on a GNOME system, and b) has gnome-terminal.
Since I personally find this shortcut make patch super useful, I'd like to submit it as a patch to TinyOS - but obviously I need to make it portable first.
Anyone know a way to start a new terminal window, on any variant of linux, mac OSX and cygwin, preferably in a way that the file works for all three, regardless of what you're using?