ioquatix / script-runner

This package will run various script files inside of Atom. It currently supports JavaScript, CoffeeScript, Ruby, and Python. You can add more.
http://atom.io/packages/script-runner
Other
62 stars 23 forks source link

the shell does indeed open but it not possible to write something in it #100

Closed bjce closed 5 years ago

bjce commented 5 years ago

Thank you very much for writting script-runner which seems a really nice atom package. I installed it successfully. However when I run the command ctrl+ x, the shell does indeed pop up as follow:

screenshot 2018-11-05 at 19 27 27

It executes the code in the script. However, i can't write anything in it. Is it possible to write just one line of code it into the shell (for example just the second line print("hello earth")). If yes do you have any idea how to fix this?

ioquatix commented 5 years ago

You need to call raw_input or something similar, and then click in the shell and press keys. Does that make sense or have I misunderstood your problem?

bjce commented 5 years ago

Thank you very much for your very quick answer @ioquatix. Unfortunately I'm afraid I'm not getting your solution. You want me to write raw_input into the code (probably not because it gives an error message). Or is raw_input an option that you have to change in the setting?

ioquatix commented 5 years ago

You cannot enter additional code into the terminal that comes up.

If you want a shell, use Script Runner: Shell and then run python. You can enter commands interactively.

KieranHo commented 5 years ago

Thanks! This was also my problem too.