atom-script icon indicating copy to clipboard operation
atom-script copied to clipboard

[STDIN] Allow scripts to receive user input during runtime

Open caleb531 opened this issue 11 years ago • 29 comments

Hi,

Currently, Atom Script works very well for quickly checking the output of a program within the editor. However, programs may often require user input, and it seems that Atom Script does not allow for the user to type input and send it to a program when the program requests it.

For instance, the following Python 2 code never finishes but instead hangs, waiting for the user to provide input which cannot be typed anywhere.

name = raw_input('What is your name? ')
print 'Hello, ' + name + '.'

Therefore, I think the ability to pass user input to a program on runtime is a well-needed feature. Any possibility of adding this?

Thanks, Caleb

caleb531 avatar Feb 04 '15 03:02 caleb531

I'd sure like to see that too.

rgbkrk avatar Feb 06 '15 19:02 rgbkrk

Hi, I would really appreciate this feature too.

nicolamos avatar Apr 16 '15 08:04 nicolamos

I really need this feature.

max-santiago avatar Jun 17 '15 02:06 max-santiago

Check out Hydrogen if you'd like an advanced REPL embedded in Atom.

rgbkrk avatar Jun 17 '15 03:06 rgbkrk

+1

etem avatar Jun 26 '15 06:06 etem

I need this feature :)

phoenixyu avatar Nov 29 '15 17:11 phoenixyu

Ditto

himrasmussen avatar Jan 22 '16 04:01 himrasmussen

Any updates?

ghost avatar Feb 26 '16 12:02 ghost

Essential feature!

nik4mub avatar Jun 21 '16 16:06 nik4mub

This would help set Atom apart from Sublime

NonlinearFruit avatar Jul 21 '16 17:07 NonlinearFruit

Yeah just ran into this issue as well, would be really handy not having to jump into another idle or CLI to do it

petersteele111 avatar Jul 31 '16 22:07 petersteele111

Just came across this thread. Would LOVE to see this.

jdleo avatar Aug 04 '16 22:08 jdleo

Me too. Would be a really helpful addition to be able to receive user input during runtime.

timecode avatar Aug 11 '16 09:08 timecode

@timecode yeah, kind of tedious to run the file thru terminal every single time you make a change if your code has user input :|

jdleo avatar Aug 14 '16 06:08 jdleo

Sure, just was searching for a solution

Ahmedbayoumi avatar Aug 14 '16 12:08 Ahmedbayoumi

Is it possible to specify input and output files in Atom script? I have tried to put "< input.txt" in Command arguments, but when I do cmd+i it says "bash: <: No such file or directory".

psmitsu avatar Aug 24 '16 17:08 psmitsu

Yes. Accept user's input will be really handy here. +1 for this.

boblu avatar Oct 11 '16 06:10 boblu

I'd also like this.

Neviothr avatar Oct 11 '16 18:10 Neviothr

Hey there is a sublime text package https://github.com/mavidser/SublimeInput

can we use the python script they have used there to parse?

saikpr avatar Oct 22 '16 10:10 saikpr

I need this too!

antony-yang0412 avatar Jan 01 '17 16:01 antony-yang0412