(I sent the original email to vim-use mailing list, but since I ended up
going through the source, I'm moving the conversation to vim-dev.  Hope
that's alright.)

On Mon, 13 Jan 2025 21:18:51 -0500
Enan Ajmain <3nan.ajm...@gmail.com> wrote:
> On GVim :terminal buffer (using Windows cmd shell), I get bold fonts
> sometimes.  Now, I do use clink (which is a module that adds some GNU
> readline facilities to CMD) and I disable bold fonts on terminal so I
> can't tell if the bold fonts are coming from clink.  I disabled
> everything regarding bold in clink, but I may have missed some thing.
> 
> In any case, I want to disable bold fonts in :terminal buffer regardless
> of where it's coming from.  Is that possible?

I found that this bold attribute was set in 'vtermAttr2hl' function.
Disabling/commenting the relevant part (see below) disables the bold
font in :terminal buffer.

I tried to enable libvterm's 'vterm_state_set_bold_highbright', which
_should_ convert bold attribute into bright colors, but that has no
effect for some reason.  Neither in GVim nor in Vim.  So libvterm
appears to be sending bold attributes for cells (characters?) regardless
of the 'bold_is_highbright' flag of VTermState.  Is this a bug?  Or is
the bug in Vim (in how Vim handles the bold attribute of the cell)?

Or is this not a bug at all?  If not, then how can I disable bold fonts
in GVim?

--
Enan


diff --git a/src/terminal.c b/src/terminal.c
index 451d59c4d051..8130bcfe86ec 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -2890,8 +2890,8 @@ vtermAttr2hl(VTermScreenCellAttrs *cellattrs)
 {
     int attr = 0;
 
-    if (cellattrs->bold)
-       attr |= HL_BOLD;
+    // if (cellattrs->bold)
+       // attr |= HL_BOLD;
     if (cellattrs->underline)
        attr |= HL_UNDERLINE;
     if (cellattrs->italic)

-- 
-- 
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 vim_dev+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/20250114152926.000015ba%40gmail.com.

Raspunde prin e-mail lui