diff options
author | Josh Triplett <josh@joshtriplett.org> | 2016-07-12 22:52:10 -0700 |
---|---|---|
committer | Josh Triplett <josh@joshtriplett.org> | 2016-07-24 01:56:33 -0700 |
commit | 298608f88c463705cfd6ee47035c049dbb1d9fa0 (patch) | |
tree | 6c4fe7bafc57b400daf019a2dd24aa218815c66e /src/nvim/os/pty_process_unix.c | |
parent | ef72303a1ff862fde6d9399941c091c0a0692cce (diff) | |
download | rneovim-298608f88c463705cfd6ee47035c049dbb1d9fa0.tar.gz rneovim-298608f88c463705cfd6ee47035c049dbb1d9fa0.tar.bz2 rneovim-298608f88c463705cfd6ee47035c049dbb1d9fa0.zip |
Automatically detect terminal background and set bg=dark or bg=light
xterm-compatible terminals support reporting their configured colors
back to the application. Use this to obtain the current background
color, compute its luminance to classify it as light or dark, and set
'bg' accordingly. Also set the default for 'bg', so that `:set bg&`
will revert to that detected default.
Diffstat (limited to 'src/nvim/os/pty_process_unix.c')
0 files changed, 0 insertions, 0 deletions