A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/issues/15411 below:

re-detect background color on SIGWINCH · Issue #15411 · neovim/neovim · GitHub

Feature already in Vim?

not to my knowledge

Feature description

An enhancement to #9509 / #5027 , it would be nice if upon receiving SIGWINCH, neovim re-detected the background color and set background to light or dark again as it does on startup (which seems to be, set the value if it's not set explicitly, then pretend it wasn't set).

The motivation for this is on profile changes iTerm2 will soon send SIGWINCH and coupled with also upcoming feature of changing terminal profiles automatically on system light/dark changing, we could also have neovim themes that have light/dark modes like tokyonight automatically change at the same time.

I've given this feature a quick stab by making handle_background_colornon-static and calling it from sigwinch_cb but that's not quite working and I don’t really know anything about the codebase so it was just a guess. Maybe @joshtriplett and @justinmk who wrote and merged the base feature have better ideas? Of course if this is at all an acceptable idea in the first place. I'd like it at least.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4