Sublime Forum

How to input values when running a program

#1

Hello!
I am new comer to sublime text. I met a problem:
When i running a C++ program with “cin”, sublime text does not allow me to input a value.
I am using ST3 3.59 on Windows 7.
How to deal?
Thanks!

0 Likes

#2

Anyone met same problem?

0 Likes

#3

Interacting with the console or an application is not possible with SublimeText. The only way around this is to either execute the program outside of SublimeText (command prompt) and interact in that environment or create a plugin that collects the values before executing (using the input panel) and passes them as command line parameters to the program.

0 Likes

#4

Thanks for your help! :smiley:

0 Likes