-
Notifications
You must be signed in to change notification settings - Fork 0
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
missing interface functions for an IO #2
Comments
I wondered about implementing that. But one thing this package absolutely must do is ensure that any terminal-escapes get "closed": you don't want to truncate julia> sprint("abcdef"; context=:color=>true) do io, str
printstyled(io, str; color=:red)
end
"\e[31mabcdef\e[39m" before the color gets restored to default at the end. (As stated in the README, it gets truncated to My thinking was that if I live in just the world of However, I guess I could implement it to interpret it as a |
I guess the other reason not to implement it: |
More generally, I'm wondering if we want an |
The typical interface functions for an IO are most clearly reflected by the forwarding methods provided by AbstractPipe:
https://github.com/JuliaLang/julia/blob/17cfb8e65ead377bf1b4598d8a9869144142c84e/base/io.jl#L414-L443
in particular, this method seems to be missing, and typically is the primary method that makes something an "IO" subtype
The text was updated successfully, but these errors were encountered: