Change the background color of the Vimterminal

Asked 2 years ago, Updated 2 years ago, 77 views

I am using Vimterminal (:terminal), but the background color of the terminal is grayish as shown in the picture below.
Is there a way to make this white like the window in the editor below?

In my environment,
background=light
colorscheme default
t_Co=256

is set to

Vim is booting to CUI

macOS:10.12.6

vim terminal

Add

I am using vim after patch is applied, but this problem has not been fixed in this environment.
Rebuild vim using homebrew

brew reinstall vim --with-override-system-vi --with-python3 --with-lua --HEAD

But the background color is still gray.

--HEAD is specified to retrieve the latest patch from vim's github repository.

vim --version

for rebuilt vim
 VIM-Vi IMproved 8.0 (2016 Sep 12, compiled Sep 15 2017 21:17:21)
MacOS X(unix) version
Included patches: 1-1111
Compiled by Homebrew
Huge version without GUI. Features included (+) or not (-):
+acl+file_in_path+mouth_sgr+tag_old_static
+arabic + find_in_path-mouth_sysmouse-tag_any_white
+autocmd + float + mouse_urxvt-tcl
-balloon_eval+folding+mouth_xterm+termguicolors
-browse-footer+multi_byte+terminal
++buildin_terms+fork()+multi_lang+terminfo
+ byte_offset-gettext-mzscheme + termresponse
+ channel-hangul_input + netbeans_intg + textobjects
+cindent+iconv+num64+timers
-clientserver+insert_expand+packages+title
+ clipboard + job + path_extra-toolbar
+cmdline_compl +jumplist +perl +user_commands
+cmdline_hist +keymap + persistent_undo +vertsplit
+cmdline_info+lambda+postscript+virtualedit
+ comments + langmap + printer + visual
+conceal +libcall +profile +visualextra
+ cryptov + linebreak-python + viminfo
+cscope +lispindent + python3 + vreplace
+ cursorbind + listcmds + quickfix + wildignore
+ cursorshape + localmap + reltime + wildmenu
+dialog_con+lua+rightleft+windows
+ diff + menu + ruby + writebackup
+ digraphs + mksession + scrollbind-X11
-dnd+modify_fname+signs-xfontset
-ebcdic+mouth+smartindent-xim
+emacs_tags-mousheshape + startuptime-xpm
+ event + mouse_dec + statusline-xsmp
+ex_extra-mouth_gpm-sun_workshop-xterm_clipboard
+ extra_search-mouth_jsbterm + syntax-xterm_save
+ farsi + mouse_netterm + tag_binary      
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/local/share/vim"
Compilation: clang-c-I.-Iproto-DHAVE_CONFIG_H-DMACOS_X_UNIX-g-O2-U_FORTIFY_SOURCE-D_FORTIFY_SOURCE=1       
Linking: clang   -L. -L/usr/local/lib -F/private/tmp/vim-20170915-24424-1xde4d9/Frameworks -L/usr/local/lib -o vim        -lm  -lncurses -liconv -framework Cocoa  -L/usr/local/lib -llua -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2level/CORE -lperl  -L/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/config-3.6m-darwin -lpython3.6m -framework CoreFoundation-lruby.2.0.0-lobjc    

vim

2022-09-30 13:56

2 Answers

Unfortunately, we have no choice but to switch to dark/light in the background option.

However, I am currently writing a patch, so please wait a little longer.

Additional 1

I sent you the patch, but I still don't know if it will be taken in.

https://github.com/vim/vim/pull/2067

Additional 2

Merged

https://github.com/vim/vim/commit/c71053c61180ed1ad0c98ba6063b769757832932

https://github.com/vim/vim/commit/69e8aa75112a0b12811a4f4d11061adceffbbabc


2022-09-30 13:56

Open the Terminal.app preferences, select the profile you are using, and change the ANSI color to white.

Select #FFFFFF from the Web Safe Color to make it white.


2022-09-30 13:56

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.