Sublime Forum

[C] Terminal cannot input

#1

I am a new user of this fine piece of software and overall I love it so far, but I’ve stumbled upon a huge problem that has twisting my head for over a day. Without a fix I can’t integrate to Sublime Text 2.

My problem:
The terminal skips the input and shows me [Finished].

While compiling the following C code:

#include <stdio.h>

int main (void){
	char ch;

	ch = getchar(); /*  This line is the cause of the problem, the input */

	return 0;
}

My C.sublime-build:

{
	"cmd": "tcc", "-run", "$file"],
	"file_regex": "^ ]*File \"(...*?)\", line ([0-9]*)",
	"selector": "source.c"
}

Note: My platform is Windows 7 and I use tcc for compiling C.

I’ve searched for an answer, but couldn’t find anything. Thank you in advance!

0 Likes

#2

stdin isn’t connected when running via Sublime Text, so interactive input won’t work

0 Likes

#3

i have the problem too.

0 Likes