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

Fix Unix issues #20

Merged
merged 4 commits into from
Oct 21, 2018
Merged

Fix Unix issues #20

merged 4 commits into from
Oct 21, 2018

Conversation

terrajobst
Copy link
Owner

@terrajobst terrajobst commented Oct 21, 2018

Fixes #9. Fixes #12.

Let's find all the cases where we call Windows-only APIs.
The getter isn't supported on Unix. Fortunately, we don't really have to
call it. While it's true that we generally want to leave the environment
how we found it, virtually no user will have disabled the cursor in
their terminal, so we should be fine in practive.
Console.MoveBufferArea is a Windows-only API. It's a performance
optimization as regular console output is extremely slow. Fortunately,
this problem doesn't even seem to exist (well, at least on macOS,
because that's where I was testing) so we can just get away with doing
the naive output when not running on Windows.
@terrajobst terrajobst merged commit f1ec803 into master Oct 21, 2018
@terrajobst terrajobst deleted the unix-support branch October 21, 2018 03:58
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

Successfully merging this pull request may close these issues.

1 participant