tomlau10 / gcc-make-run

Compile-run C/C++ source code and execute Makefile in Atom.
https://atom.io/packages/gcc-make-run
MIT License
24 stars 10 forks source link

Two terminal windows instead of one. #10

Closed yougotwill closed 8 years ago

yougotwill commented 8 years ago

Great package. Just one problem when I run it, two terminal windows are opened instead of one and when it closes the terminal it only closes one of the windows. (On Mac OSX).

Keep up the good work 👍

MethylatorX commented 8 years ago

Here is a work around it(I assume you're using Apple's Terminal.app). Preferences > Profiles > Shell. From "When the shell exits" chose "Close the window".

Also we would like an option to add/use a custom terminal emulator (for instance xterm/gnome-terminal/terminator...etc).

yougotwill commented 8 years ago

Thanks :) Yeah that would be great.

tomlau10 commented 8 years ago

@MethylatorX I think the difficulties for custom terminal emulator lie on how to invoke the compiled program in different terminal.

To achieve the current behavior (press to exit, passing arguments, etc) It is not as easy as just xterm ./a.out. (you may take a look at the current command)

Moreover, any options need to care about cross platform behavior.

Anyway thanks for your suggestions and I may think about it :smiley: