Atom-script: [STDIN] Allow scripts to receive user input during runtime

Created on 4 Feb 2015  路  29Comments  路  Source: atom-community/atom-script

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

REPSTDIN request

Most helpful comment

I need this feature :)

All 29 comments

I'd sure like to see that too.

Hi,
I would really appreciate this feature too.

I really need this feature.

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

+1

I need this feature :)

Ditto

Any updates?

Essential feature!

This would help set Atom apart from Sublime

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

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

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

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

Sure, just was searching for a solution

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".

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

I'd also like this.

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

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

I need this too!

@antony5386 As mentioned above you can try Hydrogen which supports STDIN.

@lgeiger I didn't see it the first time. thanks a lot!

i need this

I need this too.

This is a really important consideration. Currently is there any workaround?

I'm facing the issue discussing here ,Kindly tell me what should i do ?what should I do to take user input?

What is about that feature?

seems like no progress... uninstalling it.
hydrogen seems great, but input() always darken my screen and outputs too far below out of my screen.

I'm surprised that after four years there is still no STDIN capability in Scripts, but Hydrogen was a good suggestion, works great!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wookiist picture wookiist  路  3Comments

cmdshorty picture cmdshorty  路  5Comments

ChenZhongPu picture ChenZhongPu  路  3Comments

levani picture levani  路  4Comments

GrantTarbell picture GrantTarbell  路  4Comments