Skip to content

xterm-direct is not carried over from its bash shell into gvim's term #5903

Closed
@egberts

Description

@egberts

Updated: Used this repo, commit 7b293c7 master, tag: v8.2.0539

Using xterm-direct (16777216 colors), I am attempting to add support for more concise coloring (at RGB scale), but it doesn't quite take on the gvim yet.

Looks like t_Co variable works only within a console-based vim, and not in a GUI-based gvim.

VIM xterm-direct (console-mode)

To see the total color available in vim, I executed:

TERM=xterm-direct vim --clean

Then typed in the following vimscript:

:verbose set term? t_Co? termguicolors?
  term=xterm-direct
  t_Co=16777216
notermguicolors

GVIM xterm-direct (GUI-mode)

But t_Co returns an empty value under GUI-based gvim, when I executed:

TERM=xterm-direct gvim --clean

Then typed in the following vimscript:

:verbose set term? t_Co? termguicolors?
  term=builtin_gui
  t_Co=
notermguicolors

Describe the solution you'd like

Updated: Perhaps add GUI support to term to correctly reflect xterm-direct.
Perhaps add support to t_Co variable name while in gvim GUI-mode?

Describe alternatives you've considered

Perhaps, there is a better vimscript keyword alternative to the terminal resolution of 2, 8, 16, and 256 that vim supports (that I am not aware of).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions