Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

add function to leave matrix on key stroke #10

Open
NRG-Drink opened this issue Jun 2, 2024 · 0 comments
Open

add function to leave matrix on key stroke #10

NRG-Drink opened this issue Jun 2, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@NRG-Drink
Copy link
Owner

NRG-Drink commented Jun 2, 2024

for example: when hit q -> leave matrix.

example code:

if (Console.KeyAvailable)
{
	var key = Console.ReadKey();
	Console.Title = key.Key.ToString() ?? "no key";

	if (key.Key == ConsoleKey.Q)
	{
		_isRun = false;
	}
}
@NRG-Drink NRG-Drink added the enhancement New feature or request label Jun 2, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant