Replies: 1 comment 1 reply
-
|
Off the top of my head, I think that's pretty much it: not having to open another file descriptor unless we have to, which could result in an error. Also note that on Windows we're essentially doing the same thing, but in a Windows specific way via I don't have a strong opinion about this though but @aymanbagabas, who has rearchitected much of Bubble Tea lately, might. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have a bit of a design question. The default behavior of this library is to read input from
stdinby default and only open/dev/ttyifstdinis redirected. I've seen it done this way in a few libraries, but I haven't been able to find much discussion on what the advantage of this is over just opening a tty and avoiding the conditional logic. I can think of a few scenarios where/dev/ttyis not available (executing a specific command over ssh, running docker without-it, etc.), butstdinis also not a tty in those scenarios, so it doesn't seem to matter there. The other (very minor) advantage I can think of would be to avoid opening a separate file descriptor, but I'm curious to know if there's anything else that I'm missing.Thanks!
Beta Was this translation helpful? Give feedback.
All reactions