Skip to content

Simplify types on Color and Format#37

Draft
noelwelsh wants to merge 1 commit intomainfrom
feature/simplify
Draft

Simplify types on Color and Format#37
noelwelsh wants to merge 1 commit intomainfrom
feature/simplify

Conversation

@noelwelsh
Copy link
Copy Markdown
Contributor

Terminal programs that wrap other terminal programs have a simpler representation. Instead of using recursive types, which ultimately cannot be expressed without creating a concrete type, we ask the "syntax" to create a thunk that applies the effects, and pass that the inner program. See design.md for a fuller description.

Update implementations accordingly.

Update to Scala Native 0.5.10. Reading key presses is currently broken on MacOS, which I think traces back to the read(timeout) method, which in turn probably goes to the termios calls not working correctly.

Terminal programs that wrap other terminal programs have a simpler
representation. Instead of using recursive types, which ultimately
cannot be expressed without creating a concrete type, we ask the
"syntax" to create a thunk that applies the effects, and pass that the
inner program. See `design.md` for a fuller description.

Update implementations accordingly.

Update to Scala Native 0.5.10. Reading key presses is currently broken
on MacOS, which I think traces back to the `read(timeout)` method, which
in turn probably goes to the termios calls not working correctly.
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