[erlang-questions] Read only 1 character from STDin without requiring Return
Daniel Goertzen
daniel.goertzen@REDACTED
Mon Mar 13 14:56:11 CET 2017
Are you sure the gamepad is a serial device? I would expect it to be a HID
that goes through the OS's game controller driver plumbing. Maybe
tinkering with libSDL in C would be a good place to experiment, and then
that could be make into a port program for use with Erlang.
On Sun, Mar 12, 2017 at 1:19 PM qp <quantumpotato@REDACTED> wrote:
> I'm looking at the `io` module http://erlang.org/doc/man/io.html#read-1
>
> and finding that reading input uses a Prompt and waits for the user to
> press Enter (Return?).
>
> How do read 1 character at a time without requiring the enter press?
>
>
>
>
> I tried
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170313/b19fd3e1/attachment.htm>
More information about the erlang-questions
mailing list