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

Sys.getChar #172

Open
NQNStudios opened this issue Jul 27, 2020 · 2 comments
Open

Sys.getChar #172

NQNStudios opened this issue Jul 27, 2020 · 2 comments

Comments

@NQNStudios
Copy link

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.

@NQNStudios
Copy link
Author

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.

@NQNStudios
Copy link
Author

Another way of resolving my issue would be to declare Sys.sleep as dynamic, so I could implement it myself in my library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant