My popup terminal now defaults to a black color, did the option to change 
to match my colorscheme change?

  *call setwinvar(winid, '&wincolor', 'Special') *

*FUNCTION:*
function! Flt_term_win(cmd, width, height, border_highlight) abort
    let width = float2nr(&columns * a:width)
    let height = float2nr(&lines * a:height)
    let bufnr = term_start(a:cmd, {'hidden': 1, 'term_finish': 'close', 
'cwd': getcwd()})

    let winid = popup_create(bufnr, {
            \ 'minwidth': width,
            \ 'maxwidth': width,
            \ 'minheight': height,
            \ 'maxheight': height,
            \ 'border': [],
            \ 'borderchars': ['─', '│', '─', '│', '┌', '┐', '┘', '└'],
            \ 'borderhighlight': [a:border_highlight],
            \ 'padding': [0,1,0,1],
            \ 'highlight': a:border_highlight
            \ })

    " Optionally set the 'Normal' color for the terminal buffer
     call setwinvar(winid, '&wincolor', 'Special')

    return winid
endfunction

*RESULT:*
:call Flt_term_win('wsl',0.9,0.6,'Todo')

[image: 2021-12-20_17-06-47.png]

*VIM:*
[image: 2021-12-20_17-10-29.png]

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/6a759ebf-845d-4290-be22-b51ab4fe55b8n%40googlegroups.com.

Raspunde prin e-mail lui