Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow input from console #58

Open
AsyxRoblox opened this issue Feb 8, 2022 · 3 comments
Open

Allow input from console #58

AsyxRoblox opened this issue Feb 8, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@AsyxRoblox
Copy link

Would it be possible to get support for something like s = io.read("*a")?
Right now I can do this via the clipboard api but it's a bit hackish and non-standard way of doing it.
Is there any other existing way to read from the console input?

@Anaminus
Copy link
Owner

Anaminus commented Feb 8, 2022

The run command can read a script from stdin by passing - as the file name. For example:

echo 'print("hello world!")' | rbxmk run -

@AsyxRoblox
Copy link
Author

What I meant was more like console input.
Eg I want to prompt the user like "Enter the place ID" and then he enters it.
So more like interactive input while the run command is already running.

@Anaminus
Copy link
Owner

Anaminus commented Feb 8, 2022

I see. That isn't possible currently, but it can be added once I decide on an API.

@Anaminus Anaminus added the enhancement New feature or request label Feb 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants