-
-
Notifications
You must be signed in to change notification settings - Fork 73
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
mate-terminal shows only 8 colors #209
Comments
Le 27/11/2017 à 16:51, Jozef Mlich a écrit :
I believe mate-terminal should allow 16 colors instead of 8.
Does gnome-terminal support 16 colors ?
Best regards.
--
Alex ARNAUD
Visual-Impairment Project Manager
Hypra - "Humanizing technology"
|
gnome terminal says 256 colors.
|
And while we're at it, you might want to revise the preceding line about |
Let's also note that the script isn't quite correct either. For For parameters 0-7 it outputs 40-47 which are the 8 colors. For index 8 it outputs 48 which on its own forms an incorrect escape sequence (it'd require additional parameters for 256-color or truecolor codes), hence the background color remains unchanged (gray/white for that column). For index 9 it outputs 49 which resets the background color. For indices 10-15 it outputs the values... drumroll... 410-415 which are invalid. (Same story with |
Should I add
into ~/.bashrc as a workaround? |
I guess that should do as a workaround for the time being. Make it conditional to |
So, is it enough to drop two lines? It's an easy fix then. https://git.gnome.org/browse/gnome-terminal/commit/?id=a0ecd018f070b96a6ca2ff778ddda0f7fde5b847 |
I guess it should be that easy, give it a try to see for sure. |
I've tested it and it works as expected for me. @jmlich Perhaps you alter To test, I've switched to another shell under Profile Preferences -> Title and Command, and verified that this change indeed changes |
Maybe some script in /etc/profile.d/* changes it. I am not able to find it. )-; The colors works correctly on my computer only if I set TERM=xterm-256color variable in ~/.bashrc. That change was fixing the issue even before that commit. Honestly, I don't understand where the default value comes from. I will be happy, if someone can test it also on fedora. |
For me it works:
What's in your
|
Sadly, we have a heavy regression with the fix, see my comments in PR. |
|
My results:
|
[rave@mother ~]$ tput colors [rave@mother ~]$ TERM=xterm tput colors [rave@mother ~]$ TERM=xterm-256color tput colors |
Ok, i will test it later how it works with f27. |
@jmlich @egmontkob |
I see the same problems in f27 if i use that commit for mate-terminal. |
Well, since it didn't fix the problem for @jmlich, we can revert it, I don't mind. Still, would be nice to find out why all that happens. I don't see these problems in Debian and Ubuntu. |
I found the culprit commit |
Guys, at this point I absolutely do not understand anything about what and why you are doing. You keep mentioning the change caused problems, while the only single problem you mentioned was Not a single bit of worthwhile investigation happened on your side that would get to the bottom of the issue. I tried to help, but got answers only to some of my questions, and by the time I had a chance to continue to help suddenly the change was reverted and this issue was closed. You keep ignoring the fact that most of the terminal emulators have advertised 256-color support for years now without known problems of such extent. Just do a random web search to see how popular request it is to use 256 colors (in fact, VTE supports 16 million colors a.k.a. true colors as well, and there's even a popular demand to advertise that too, unfortunately there's no official or widely accepted way to do that). And after reverting the change, after making |
Geez, I'm wondering where that comes from... Could you please check the TERM value of mate-terminal itself, rather than the shells it launches? This should do it:
This could be a sufficient workaround then, until we find the actual problem (which might be in VTE, I'm really uncertain at this point.) |
Just to make sure that we're still on the same page, could you please confirm this (merging your answers from two previous comments): In the same buggy mate-terminal and the same shell, these two commands give the answers as shown here:
I have no idea how this could happen. In |
With mate-terminal-1.20.0-1.fc27.x86_64 (latest master, unreleased)
with mate-terminal-1.20.0-2.fc27.x86_64 (broken version using https://github.com/raveit65/mate-terminal/commit/0ec221de105e753a6df56cfe276025e8d084ac3c)
with mate-terminal-1.20.0-3.fc27.x86_64 (using improved patch from #209 (comment))
Hope this makes it clear to identify the issue. |
@raveit65 I still totally don't understand your observation from two weeks ago when Your latest comment makes more sense to me. That Seems to me that VTE setting up the default environment (including Could you please remove these lines, according to gnome-terminal commit e74c3e3fc? This fixes the issue for me, I'm curious to hear whether it works for you too. Thanks! The next gnome-terminal commit aaa515ee6 might also be relevant, it's unclear to me what it does. |
Not my problem if you don't understand it.... Please open an PR and all is good. |
This is not the first time your comments come across as somewhat offensive. I hope it's purely due to language barrier, neither of us being native English speaker, sometimes having a hard time expressing ourselves. In your comments made about 2 weeks ago, you mentioned multiple times that you had It was 2 days ago that you first mentioned
I've never done PRs and it's not going to be now when I start doing them. Please go ahead and submit the patch on your own, if it indeed works for you. Thanks! |
Ok, let's try #231 with the change suggested by @egmontkob. Just in case, I've made two commits, so you could test one or both. |
Hmm, the test of #231 shows that this change isn't enough.
For some reason I don't have |
This is okay and is irrelevant. There's no way mate-terminal could influence the environment mate-terminal itself is started up with. What matters is: is TERM set to xterm-256color in the shells it launches? For me it is (at 568ab78). (To clarify: This information was useful for debugging. But it's not expected to see xterm-256color there.) The remaining problem is: How come that "git log" still doesn't work for raveit65? In #231 he confirms that now TERM is set to xterm-256color for him. In his comments made on Feb 4 & 5 in this thread (including attached strace logs), faulty behavior was always tied to TERM=dumb whereas TERM=xterm-256color worked correctly. I don't know what's going on (I already made it clear on Feb 6 that I didn't know). Maybe TERM is set to xterm-256color initially, and later at some point somehow it changes to dumb?? What happens in other terminal emulators that also default to xterm-256color?? Is this problem specific to him, or does it affect a broader audicence? Maybe all Fedora users?? I'm happy to further investigate IF (and only IF!) Or can anyone else reproduce this problem and help me work together? |
Yes, If that varaible is irrelevant, there must be something else that causes |
|
@raveit65 Wow, submitting offensive comment, then removing it along with the targeted person's response, true gentleman behavior. Go ahead and delete this one too, will you please? Lucky for you the MATE project doesn't seem to have a code of conduct, otherwise most likely your previous comment would be enough to kick you out from the developers. And it doesn't count that you've deleted it, it's still present in some of our mailboxes, and most importantly, has reached me too. @monsta And others, if you remove raveit65 from the project I'm happy to further help you. Until then I'm out of here, and I don't mind to the slightest bit if mate-terminal is going to be the last to catch up with innovation in the terminal emulator world. I just don't see the point in spending any second developing it then, why not use gnome2 as it was back then? |
@raveit65 Oh, and just one very last thing: When someone says (and not for the first time) that they were somewhat offended by your style, then the correct reaction is to go like "sorry, I didn't mean that, I'll try to take care" or something similar, but most definitely NEVER EVER to intentionally further offend them!!! |
I vote for keeping @raveit65 on the grounds that he has done good work. Also, we should all keep in mind: the competition is Microsoft and Apple, not each other. The enemy is patent trolls and those who try to impose government-mandated backdoors or lock bootloaders and chipsets against free software, not each other. |
@raveit65: @egmontkob: I have just followed up on your "sort-of-heated debate" above and wonder if we could find a technical solution for the above issue. It feels that the below commits might be helpful to achieve this goal...
THANKS! |
This is a pretty big usability issue IMO. Some common terminal applications such as htop look absolutely horrible under mate-terminal |
@egmontkob Are you insane? @raveit65 has done an incredible amount for the MATE project, which I use and enjoy every single day, he absolutely must stay. To even suggest anything otherwise is unreal, do you even look at who is committing changes? He is a rockstar. Stop being a baby. I pray MATE never gets a code of conduct, so ungrateful users like you can't attack developers with it. Your sense of entitlement to other people's time is uncomfortably embarrassing, even very early on in this thread. Good day. |
I am happy to forget everything what has been said here and start again from zero. |
Well this thread certainly was a rollercoaster. Not sure if this helps anyone but putting |
…'xterm'). This provides 256 colors terminal application support. Fixes mate-desktop#209.
…'xterm'). This provides 256 colors terminal application support. Fixes #209.
another workaround is set this as your executing terminal command in your profile |
I had the same problem on one of my desktops and fixed it that way:
now "tput colors" shows 256. |
Expected behaviour
I believe mate-terminal should allow 16 colors instead of 8.
Actual behaviour
Second row of colors is not reachable
Steps to reproduce the behaviour
MATE general version
1.19.1
Package version
Linux Distribution
Link to downstream report of your Distribution
https://bugzilla.redhat.com/show_bug.cgi?id=1517870
The text was updated successfully, but these errors were encountered: