Hi everybody !
I discovered Sublime Text 3 or 4 days ago and I’m totally in love with it . I’m using it for C++ programming right now, which is not always a piece of cake (it took me 3 or 4 hours to get the build config working).
The Sublime Text console doesn’t seem to support input methods (a loop with an input will never end), so I wanted to open my compiled programs (small programs, with no graphical library) in an external console.
I tried everything in the build config (using “cmd”, “call”, etc.) but the program still opens in Sublime Text’s console, thus crashing the software (as I get an infinite loop).
I’ve seen a solution to that proble that consist in defining an alternative input method that works on Sublime Text. I’d prefer to avoid that as I want to stay as generic as possible and not use editor-specific code.
Thank you in advance !
EDIT:
Here’s my .sublime-build config:
{
"cmd": "C:\\MinGW\\bin\\mingw32-g++.exe", "-Wall", "-time", "$file", "-o", "$file_base_name"],
"file_regex": "^ ]*File \"(...*?)\", line ([0-9]*)",
"working_dir": "${project_path:${folder}}",
"selector": "source.c",
"shell": true,
"encoding": "latin1"
}