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
Tea and termenv do not honor WithOutput properly #420
Comments
FWIW, BSD libedit and readline treat the input and output file descriptors separately:
|
Oh and both query the terminal size using ioctl / TIOCGWINSZ on the input file desc, not output. Unsure why. |
Yep, the |
We should look into that, I see more apps doing that. |
There's a mismatch in API semantics:
os.Stdout
WithOutput
)When bubbletea
WithOutput
is used with a different file,termenv
does not recognize color profiles properly any more.Generally, the mistake being made is the assumption that stdout is the file descriptor connected to the terminal. generally, the terminal is to be found on stdin, not stdout (and neither stderr!)
This mismatch is the cause of the following issues:
I understand that the "next generation termenv" at https://github.com/muesli/termenv/tree/termenv-next would help with this, but I don't seem to see a timeline to get this moving forward?
The text was updated successfully, but these errors were encountered: