-
Notifications
You must be signed in to change notification settings - Fork 27
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
Remove TTY detection #201
Remove TTY detection #201
Conversation
johnsonjh
commented
Nov 16, 2020
•
edited
Loading
edited
- More reliable TTY detection
The build failure is a Travis false positive, and fixed in #222 |
I'd rather just delete the logic here, who cares if you log to a file when doing a --create |
f978c47 apparently you cared! Haha. I'd be fine with getting rid of it, I don't think anything we have relies on the behavior... the intention was probably to avoid inadvertently writing the seed out to disk? |
@cjdelisle Pushed a replacement that just deletes the logic, if you prefer that. |
|
@cjd per private discussion, not using https://github.com/mattn/go-isatty - we'll just remove this check for now - https://github.com/mattn/go-isatty is a great solution, however, if you need this sort of check to be reliable. On Windows, you have the "legacy terminal" (ala CMD or NTVDM), Windows Terminal, Cygwin Cygpty, MinGW Term, Git Bash Term, mintty, MobaXterm (Cygpty-compatible, mostly), PowerShell (launched 'alone') (vs PowerShell 7 which behaves different from the others in some ways), and PowerShell ISE (which is also different), etc... it's stupidworld over in Windows-land! I'm super-aware of just how bad it is, now that I have Windows on the test VM and setup for CI/CD. I assume they never change or remove the old interfaces to not break older products - but it means that sometimes you need do " Example: Using PowerShell, a simple Happy to avoid the whole situation. |
|