- Notifications
You must be signed in to change notification settings - Fork62
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Add some windows hack for getChar#9
base:main
Are you sure you want to change the base?
Conversation
@@ -32,7 +33,7 @@ data PresentationCommand | |||
-------------------------------------------------------------------------------- | |||
readPresentationCommand :: IO PresentationCommand | |||
readPresentationCommand = do | |||
k <-readKey | |||
k <-GetKey.getKey | |||
case k of | |||
"q" -> return Exit | |||
"\n" -> return Forward |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I tried applying these changes over the most recent version in hopes of getting it to work on Windows; testing this out on the first 01.md, it didn't appear to do anything differently. Advancing worked fine, but it was impossible to move backwards on slides.
However, commenting out this particular line and freeing\n
seems to resolve some kind of fight between the windows console and getChar, allowing you to write a command and then flush the buffer with enter, making patat usable for me on W10 1809.
I added some more changes but it still does not work as smoothly as I would like to -- often you need to enter commands twice and I'm really not sure why that is happening. |
No description provided.