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

Using "-cmd" in .hxml is preventing "Sys.getChar()" to work #11424

Open
madneon opened this issue Dec 5, 2023 · 0 comments
Open

Using "-cmd" in .hxml is preventing "Sys.getChar()" to work #11424

madneon opened this issue Dec 5, 2023 · 0 comments

Comments

@madneon
Copy link

madneon commented Dec 5, 2023

Simple program like this:

class Main {
	static function main() {
		var k = 0;
		while (k != 3) { // Ctrl+C
			k = Sys.getChar(false);
			trace(k);
		}
	}
}

...is not working when invoked with "-cmd" in .hxml:

-main Main
-cpp test

--next
-cmd test/Main

This breaks for other targets too, including HashLink and Neko. Looks like "-cmd" is not passing the key input.

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