-
Notifications
You must be signed in to change notification settings - Fork 160
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
256 colors in powerline and tmux #170
Comments
The VTE Terminal automatically replaces the TERM environment variable with
The above is same whether you start a custom command or the default shell.
The setting of TERM may behave differently whether you start a custom command or the default shell. When you start with the default shell (for example bash) then first VTE will override your TERM setting, but bash will set it again if you have configured it in ~/.bashrc or some other file that gets read during start (.profile or what ever). When you run a custom command on the other hand then VTE will also replace TERM with You can try the following custom command to work around this: bash -c "export TERM='xterm+256color'; ipython" This will explicitly use bash and export the correct TERM variable AFTER VTE has set TERM to I am not really sure this is something that should be fixed in tilda. If you like you can take a look at There is also a function in vte: vte_terminal_set_emulation but I checked about gnome-terminal and it does not make use of this function either, so I assume that its not the correct way to do it. Also I read: https://bbs.archlinux.org/viewtopic.php?id=175581 and it suggests not to mess with TERM in the terminal. |
I also just found this: https://bugzilla.redhat.com/show_bug.cgi?id=1166428 Seems that VTE might have fixed it. You can try to build from the latest git master and enable VTE 2.91 if you system has it: |
Ok, I just tried this myself and I can confirm that VTE when used with the libvte-2.91 API now advertises |
I can't seem to get bash powerline to work in 256-color mode.
When I run tmux from within tilda, i.e. from a bash shell, everything works as expected. However, if tmux is started by tilda itself, i.e. as a custom shell, powershell runs with a reduced color palette (I guess it's 16 colors) and looks kind of ugly.
Initially I thought that tmux might not be getting the TERM variable that I set in .basrc when it gets run by tilda so I put it in /etc/environment - that didn't help. So ended up moving the /usr/bin/tmux binary somewhere else and calling it from a shell script replacing it. That seems to work fine but I didn't like it much and was kind of wondering:
Is there a more proper way to accomplish this with tilda?
The text was updated successfully, but these errors were encountered: