Note that there are some explanatory texts on larger screens.

plurals
  1. POSublime Text launch separate command window (C/C++)
    primarykey
    data
    text
    <p>I am trying to do all the programs in <a href="https://rads.stackoverflow.com/amzn/click/0321776410" rel="nofollow noreferrer"><em>Programming in C by Stephen G. Kochan</em></a> as an exercise and to familiarize myself with some of the finer details (I didn't go to school for computer science) of C (on a <em>Windows 8</em> machine).</p> <p>A lot of the book is simple programs and I'd like to enter the programs with <a href="https://en.wikipedia.org/wiki/Sublime_Text" rel="nofollow noreferrer"><em>Sublime Text</em></a> (as opposed to <em>Code::Blocks</em>, which I have been using with <a href="https://en.wikipedia.org/wiki/OpenFrameworks" rel="nofollow noreferrer"><em>openFrameworks</em></a>). Is there an easy way to launch a separate command window for a program after it is compiled.</p> <p>It's kind of hacky, but I changed the "run" version of build to launch the compiled program</p> <pre><code>"cmd": ["${file_base_name}.exe"] </code></pre> <p>but apparently, the Sublime Text documentation says that <a href="https://sublime-text-unofficial-documentation.readthedocs.org/en/latest/reference/build_systems.html" rel="nofollow noreferrer">GUI's are suppressed</a>.</p> <p>What I want to do is launch a separate command prompt window. The primary reason is that <code>scanf</code> does not halt for input. Let me know if there is a quick workaround:</p> <ul> <li>some workaround in Sublime Text ( a setting I'm not aware of)</li> <li>how to change the build file to launch an actual window</li> <li>some way to easily launch a separate window in C</li> </ul>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload