Support custom TERM and COLORTERM env vars

Bug #794561 reported by John Feuerstein
20
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Terminator
Fix Released
Undecided
Unassigned

Bug Description

The attached patch adds the configurable profile options "term" and "colorterm" to set the respective environment variables "TERM" and "COLORTERM".
This is different from setting a custom emulation, as it allows to stay on emulation "xterm" while setting the terminal variant "xterm-256color".

You can install package "ncurses-term" on Debian derivatives to get the required terminfo/termcap files. It results in vim automatically detecting 256 color support without forcing t_Co in vimrc.

Example configuration (~/.config/terminator/config):

[profiles]
  [[default]]
    term = xterm-256color

Hope this helps,
John

Related branches

Revision history for this message
John Feuerstein (john-feuerstein) wrote :
Chris Jones (cmsj)
Changed in terminator:
milestone: none → 1.0
Revision history for this message
Chris Jones (cmsj) wrote :

Thanks for the patch, apologies for the delay. I've applied it to trunk and it'll be in the next release.

Changed in terminator:
status: New → Fix Committed
Chris Jones (cmsj)
Changed in terminator:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.