compilebox icon indicating copy to clipboard operation
compilebox copied to clipboard

Allow for Standard Input When Running Code

Open kevinbmccall14 opened this issue 7 years ago • 1 comments

Any way you think we could allow for running code that asks for standard input? I would be happy to help code if we can come up with a secure way to do it. Thank you for CompileBox!

Ruby Example:

print "Type in your name: "
name = gets()
puts name

kevinbmccall14 avatar Nov 14 '17 00:11 kevinbmccall14

I'm still learning the library, but this currently works. Using the web interface, you can specify STDIN in a separate text box.

Testing your code exactly with a name entered in that box does indeed print it.

frenata avatar Nov 17 '17 14:11 frenata