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

Win console fix #124

Merged
merged 3 commits into from Feb 9, 2014
Merged

Win console fix #124

merged 3 commits into from Feb 9, 2014

Conversation

joescii
Copy link
Contributor

@joescii joescii commented Feb 9, 2014

Updated so the prompts appear at the appropriate time on Windows. I moved the message part of Console.readLine to a separate call to printf() followed by an explicit Console.flush(). Per the scaladoc for Console.flush():

Flushes the output stream. This function is required when partial output (i.e. output not terminated by a newline character) has to be made visible on the terminal.

Since Console.readLine() doesn't print a newline, it needs a call to flush(). I suspect this is ultimately a workaround for a bug in Console.

This corrects issue #114 and potentially #98.

n8han pushed a commit that referenced this pull request Feb 9, 2014
@n8han n8han merged commit 705fc53 into foundweekends:master Feb 9, 2014
@n8han
Copy link

n8han commented Feb 9, 2014

Did you also test the changes with a unix-y console?

@joescii
Copy link
Contributor Author

joescii commented Feb 9, 2014

Yeah, just now. :) It works great on my LinuxMint laptop.

@joescii joescii deleted the win-console-fix branch February 9, 2014 18:45
@joescii
Copy link
Contributor Author

joescii commented Feb 9, 2014

Have you published yet? I'm not able to resolve 0.6.1. Let me know, and I'll double check the published one on Windows.

@n8han
Copy link

n8han commented Feb 10, 2014

No, this isn't published yet.

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

Successfully merging this pull request may close these issues.

None yet

2 participants