hxnodejs
hxnodejs copied to clipboard
Sys.getChar
I have been using IHx's ConsoleReader
class to make REPLs within Haxe that can save their command history and navigate between it. I expected this to work when compiling for NodeJS, but got the exception that Sys.getChar() isn't implemented in hxnodejs. Could it be?
I see here that it was stubbed this way three years ago and hasn't been touched since. If the implementation is easy enough, I could do it and PR.
I see according to this StackOverflow that it isn't trivial, but there is an npm module for getchar
:
https://github.com/kspalaiologos/getchar#readme
I don't know if hxnodejs has a rule against adding any dependencies other than Node itself.
Another way of resolving my issue would be to declare Sys.sleep as dynamic, so I could implement it myself in my library