comparison src/structs.h @ 34136:36843e079f64 v9.1.0030

patch 9.1.0030: Cannot use terminal alternate font Commit: https://github.com/vim/vim/commit/a606f3ac036e5f3dc313f620e6b4bc00812314f9 Author: PMunch <peterme@peterme.net> Date: Wed Nov 15 15:35:49 2023 +0100 patch 9.1.0030: Cannot use terminal alternate font Problem: Cannot use terminal alternate fonts (PMunch) Solution: Support terminal alternate fonts using CSI SGR 10-20 and t_CF code (PMunch) Add support for alternate font highlighting This adds support for alternate font highlighting using CSI SGR 10-20. Few terminals currently support this, but with added tool support this should improve over time. The change here is more or less taken from how colors are configured and applied, but there might be some parts I missed while implementing it. Changing fonts is done through the new `:hi ctermfont` attribute which takes a number, 0 is the normal font, and the numbers 1-9 select an "alternative" font. Which fonts are in use is up to the terminal. fixes: #13513 closes: #13537 Signed-off-by: PMunch <peterme@peterme.net> Signed-off-by: Christian Brabandt <cb@256bit.org>
author Christian Brabandt <cb@256bit.org>
date Mon, 15 Jan 2024 22:30:03 +0100
parents da670b1549b3
children c7779252fab5
comparison
equal deleted inserted replaced
34135:65a3e7bb12b7 34136:36843e079f64
1184 { 1184 {
1185 // These colors need to be > 8 bits to hold 256. 1185 // These colors need to be > 8 bits to hold 256.
1186 short_u fg_color; // foreground color number 1186 short_u fg_color; // foreground color number
1187 short_u bg_color; // background color number 1187 short_u bg_color; // background color number
1188 short_u ul_color; // underline color number 1188 short_u ul_color; // underline color number
1189 short_u font; // font number
1189 # ifdef FEAT_TERMGUICOLORS 1190 # ifdef FEAT_TERMGUICOLORS
1190 guicolor_T fg_rgb; // foreground color RGB 1191 guicolor_T fg_rgb; // foreground color RGB
1191 guicolor_T bg_rgb; // background color RGB 1192 guicolor_T bg_rgb; // background color RGB
1192 guicolor_T ul_rgb; // underline color RGB 1193 guicolor_T ul_rgb; // underline color RGB
1193 # endif 1194 # endif