Is it possible to provide different Xresources colors to different terminal apps

colorsrxvtthemex-resources

When using a terminal that supports more than 16 colors (such as urxvt), it it possible to provide different colors to different applications running in the same terminal after another? For example, my vim theme looks best when background and color0 are set to the same value, while htop looks best when they are different.

Best Answer

xterm has this feature:

   +dc     This option enables the escape sequence to change dynamic
           colors.  The option sets the dynamicColors option to “true”.

Check for more info: https://github.com/sos4nt/dynamic-colors

Related Question