On 2024-01-07, Danek Duvall wrote:
> I wanted to be able to set the colorscheme based on the terminal colors (and
> adapt to terminal color changes), but there was no mechanism where
> v:termrbgresp was reliably correctly set. This enhances TermResponse to
> deliver
> the type of response it got so that a handler can pick it apart and make
> decisions based on it.
>
> The only real problem with the concept is that if you want to make decisions
> based on both foreground and background, there's no way to know if both are
> set
> correctly. I'm not sure what a mechanism that provided that would even look
> like.
>
> fgbg_event is probably wrong, but I needed something to check with has().
So, as I understand your change, where I now use
:autocmd TermResponse * ...
to wait for just the response to t_RV, I will now have to use
:autocmd TermResponse ver ...
If so, that may mess up a plugin expecting the former to respond
only to the version. Other than that, this seems like a nice
feature. Maybe change the event name?
Regards,
Gary
--
--
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/20240108011042.GI4044%40phoenix.