-
Notifications
You must be signed in to change notification settings - Fork 722
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
TTY settings: way to include colors but not curses? #8193
Comments
As far as the terminal is concerned, there is no difference between "colors" and "curses", as you describe them; they are all ANSI escape sequences. The receiving terminal may choose to render these sequences in any way it sees fit. Our logs are stream oriented; which means that certain escape sequences that aim to modify the cursor position on the screen (which progress bars and such tend to use) are really bad news. |
I have the same problem as I find the progressbars from travis extremely annoying (and affecting web console load performance). Poor travis has no fault in this, this being purely pip fault which seems to be the only tool that display progress information when running in quiet mode ( Few people recommended using Before workaround
After workaround
|
Thanks for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue in 24 hours. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please do feel free to either reopen this issue or open a new one. We'll gladly take a look again! You can read more here: https://blog.travis-ci.com/2018-03-09-closing-old-issues |
Hey, I'm looking for a solution as well. How to tell Travis NOT to behave as a tty ? |
I believe Travis pretends to be a TTY so that colors render correctly in the build.
However this breaks for applications that use curses - Travis can't handle these and appends a new line each time the line is redrawn. See for example here: https://travis-ci.org/kevinburke/rest/builds/256303499
You get output like:
That's using Bazel, which uses the presence of a tty to infer that it can show progress messages (and colors). So right now using Bazel you have to run that and then get the bad output and then dig through the settings (there are lots of settings) to find and enable
--noshow_progress
and other settings. It would probably be preferable to disable colors (and progress messages) if we had to choose between colors and curses/progress messages.Is there a specification or a standard for setting TTY or no in your
.travis.yml
or a specification for telling the running program, "I can handle ANSI escape sequences but not curses"?Previously, previously, previously, previously.
The text was updated successfully, but these errors were encountered: