atom-terminal-tab
atom-terminal-tab copied to clipboard
Customize TERM variable option
Can we have a way to declare which terminal we're using?
Most of my terminal colors don't work with the default xterm-color
, and it seems that xterm-256color
is supported by this addon:
I'm using
- zsh "z shell" (technically with the "oh my zsh" addon, and themed with p10k)
- macOS 10.15.3
Thank you! Great addon, by the way!
Curious if there's any harm in just defaulting to xterm-256color
? I'd like to avoid adding options and settings, if possible, as my goal for this addon is to work out of the box for most people without thinking about configuration.
Doing some research, it seems that TERM=xterm-256color
should be okay. I haven't found anything that would say otherwise.
While we're at it, why not set COLORTERM=truecolor
? I would say it's supported because of xtermjs/xterm.js#1895.
I also found an article about terminal colors.
I don't quite know how to set these variables accurately, but it seems that it would have to do with lib/terminal-session
:
https://github.com/jsmecham/atom-terminal-tab/blob/d608f7166586a9d8bffe98007b37118e8040e27b/lib/terminal-session.js#L45-L49