Skip to content

Is there any way to get user input? #2

@deadfoxygrandpa

Description

@deadfoxygrandpa

I was trying to add a function to get user input from stdin, but I can't figure it out. Node doesn't seem to have a simple get_line() type function that blocks (because Node's "thing" is non-blocking). That seems to make it hard to make a Task that reads from stdin. But Elm seems to need the DOM to create a new input Signal.

Am I missing something? Is this the reason you guys haven't added something like this yet?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions