When writing and compiling c++ in atom, how can I change the size of the xterm window that opens? In codeblocks I can pass arguments to xterm like -geometry 100x50 but I don’t see where to set that in Atom.
What package are you using to run code?
Using gcc-compiler package
I’m not a C++ developer, so I don’t have personal experience with the package, but I think I can help figure it out.
Here’s the code where
gpp-compiler defines the
xterm instruction. It seems that this is controlled by a config setting, but that config setting is just a dropdown list of terminals and there’s no way to input extra arguments to be added to the command. So here are your options:
- Look for a different package. You could replicate the same compile and run process via
process-palette, and in that case you could run
xtermwith whatever arguments you want.
gpp-compilerso that the
xtermcommand includes your custom argument. There’s the quick and dirty way of editing the package source, which will be overwritten when the package updates, and there’s the proper way using
git clone https://github.com/krisscross07/gpp-compiler,
apm install, and
apm linkwhich will prevent automatic updates.
- Make a pull request on the
gpp-compilerrepo with a new config option for additional arguments.