dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.23.1 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
jmcantrell has quit [Ping timeout: 260 seconds]
jmcantrell has joined #foot
jmcantrell has quit [Client Quit]
jmcantrell has joined #foot
blackerby has quit [Ping timeout: 252 seconds]
blackerby has joined #foot
Abner has quit [Quit: Leaving.]
helmut has joined #foot
<helmut> hi. thanks for foot. I'm having difficulties getting bold rendering working. setting bold-text-in-bright=palette-based improved things in vim, but printf '\e[1mbold\e[0mnormal\n' remains indistinguishable. I have a color scheme setting regular* and bright*. what should I be looking at?
zayd has quit [Read error: Connection reset by peer]
zayd has joined #foot
<kode54> dnkl: disregard what I said, it was happening to chromium too
<kode54> I think Plasma 6.4.4 just busted
<helmut> hmm. bold-text-in-bright=yes used to (1.13) used to not render bold in vim, but now it does (halfway, recognizable, not great).
<dnkl> helmut: that option has never changed whether bold is used or not. Only if it _also_ is rendered brighter
<helmut> I suspect that my font does not have a bold variant
<helmut> xterm (where the visual difference is clearer) seems to paint each glyh twice with a 1px x offset to turn them "bold" (which you may call not great)
<dnkl> helmut: you can change how much brighter it gets. Or you could override font-bold to something of your own choice
<dnkl> and
<dnkl> you can also look at "foot -d info" to see exactly which fonts it's loading
<helmut> I am not sure I how I never ran into that option. surprisingly foot tells me "error: foot: /home/helmut/.config/foot/foot.ini:28: [main].bold-text-in-bright-amount: 1.5: not a valid option: bold-text-in-bright-amount"
<dnkl> it's in the "tweak" section, not main
<helmut> sorry, for the pebcaks. I the doc's are right and clearly indicating that. and it just works.
<dnkl> no worries :)
<helmut> in any case, my foot.init seems to have reached bug-compatibility with xterm to a sensible extent and I can start learning all the new stuff that foot adds :)
<dnkl> heh, good to hear
Biolunar has joined #foot
<helmut> in day to day usage, the most annoying part still is containers lacking foot-terminfo
<dnkl> almost everything should be fine with the ncurses provided terminfo (i.e "foot", rather than "foot-extra"). I hear even Debian has a recent enough ncurses now a days...
<helmut> hmm. no. [main].bold-text-in-bright=yes made dimmed characters invisible. :-(
<helmut> dnkl: yeah, it's only pre-trixie where that is annoying
an3223 has quit [Remote host closed the connection]
<dnkl> not sure how dimmed can end up invisible, but please file a bug report if you can reproduce it
an3223 has joined #foot
an3223 has quit [Remote host closed the connection]
<helmut> uhm. what looks dim on the screen (in xterm) is produced as "bold black" printf '\e[1m\e[30mdim\e[0mnormal\n'
<helmut> I'm not sure it is a bug or a feature
an3223 has joined #foot
<helmut> and when foot increases the brightness of that black glyph, well then multiplying 0 doesn't get you anything different
<helmut> though irssi clearly expects that to display something
azerov has quit [Quit: Gateway shutdown]
azerov has joined #foot
<dnkl> the result of "bold black" (assuming brightening is enabled) depends on both the color scheme in use, and by how much you brighten it, and the color schemes background color. So yes, there are many ways for that combination to end up unreadable, and applications should avoid it. Most modern applications don't use it
<dnkl> in foot's default color scheme it's perfectly readable,imho
<helmut> I cannot confirm on Debian trixie 1.21. I moved my foot.init out of the way and even after scaling up the font I cannot distinguish bold black from the background color
<dnkl> maybe you want bold-text-in-bright=palette-based instead of "yes"?
<helmut> with that setting, it becomes distinguishable, but then, I'm back to my original problem printf '\e[1mbold\e[0mnormal\n' becoming indistinguishable which was fixed by bold-text-in-bright=yes
<dnkl> the algorithm for brightening changed slightly in 1.22. perhaps that's why it's unreadable for you
<dnkl> (for "yes", not "palette-based")
<helmut> should bold white not map to bright0?
<helmut> err bright7
<dnkl> with palette-based, yes. As far as I can tell, it does, also in 1.21
<dnkl> and I've verified that "yes" is more readable in the latest release, compared to 1.21
<helmut> I anticipated foot getting better and hence deferred my foot tweaking until my trixie upgrade. %-)
<helmut> in any case, thanks a lot for having taken the time on end user support and for making wayland easier to adopt via foot.
<dnkl> you're welcome :)
<helmut> with bright7=ffffff and palette-based, I am quite sure that \e[1m is not displayed in white but some gray. if you consider that a possible bug, I can look into debugging and/or writing a bug report
<dnkl> 1m is not the same as regular7
<dnkl> 1m is "bold using the default foreground color"
<helmut> foreground=c0c0c0
<dnkl> with palette-based there's no corresponding bright color for the foreground color
<dnkl> which means the original color is used, unchanged
<helmut> that fully matches my observation
<dnkl> it's expected
<dnkl> by design
<dnkl> so yes, you'd have to go with "yes" instead, for that to work
<dnkl> but the correct answer is of course to not use application color themes that abuse bold. They should be using bright colors directly instead.
<helmut> not sure how to fix irssi
<dnkl> me neither, I'm afraid. don't use it
<dnkl> don't know how much freedom their color schemes have
<helmut> I found where %K (bold black aka dark gray) is being used in the default color scheme, but not where %K is implemented
<runxiyu_> Is it possible to let foot switch color themes via darkman?
<helmut> dnkl: is there some reference material I could include in an irssi bug asking for not using bold black?
<helmut> and is adding a bold foreground palette color an option?
<dnkl> runxiyu_: only if darkman has a custom "foot" backend. There's no generic Wayland protocol to signal theme changes, meaning foot has no way to receive theme change notifications. Except for its own built-in support: SIGUSR1 and SIGUSR2
<runxiyu_> alr, thx
<runxiyu_> i'll probably just use color-theme-toggle for now
<dnkl> helmut: don't really want to add that option, as the bold-is-bright thingy is now considered legacy by most terminal emulators, and are disabled by default in most of them
<dnkl> so, adding more options that encourage the bold abuse isn't something I consider a good idea
<helmut> sounds like I want an actual bold font
<dnkl> as for irssi - I would think that mentioning that bold-is-bright is off by default in most terminals is enough. I would consider it a bad idea to rely on a disabled feature in their default theme
<dnkl> and the fact that "bright black" (both via bold-is-bright and \e[90m) is unreadable, or at least have very low contrast, in many terminal color themes
<dnkl> if what they want is a "dimmed" white, why not use exactly that? i.e \e[2m (dim foreground), or \e[37;2m (dim white)
jmcantrell has quit [Ping timeout: 252 seconds]
* runxiyu_ is wondering how to make nvim's termguicolors follow foot's color scheme settings
<runxiyu_> does foot emit osc 11?
<j`ey> yes
<dnkl> emit? it supports receiving it (and replies to the query variant)
<j`ey> I do a similar thing in my nvim config
<j`ey> and nvim by default uses OSC11 to check if bg should be dark
<runxiyu_> oh, hm
<runxiyu_> my nvim doesn't seem to behave this way :/
<runxiyu_> okay, --clean works
<runxiyu_> my bad
<runxiyu_> thanks! was just a config issue
Biolunar has quit [Ping timeout: 248 seconds]
<helmut> dnkl: thank you. I'll file an irssi report
<helmut> dnkl: regular0=333333 may be a sensible workaround for my use case though black no longer is black then
<helmut> dnkl: in the foot default configuration some form of bold-is-bright definitely is enabled. \e[1m is not just a bold font, but also brighter. (trixie 1.21) (and to me that's a feature, not a bug)
<helmut> once choosing a non-bitmap font, that dark gray stuff also works here. I didn't expect it to be font-dependent
aktina has quit [Ping timeout: 276 seconds]
aktina has joined #foot
moxie has quit [Quit: WeeChat 4.7.0]
moxie has joined #foot
aktina has quit [Ping timeout: 252 seconds]
dvb has joined #foot
aktina has joined #foot
blackerby has quit [Quit: reboot]
cbb has joined #foot
runxiyu_ is now known as runxiyu
_whitelogger has joined #foot
chilledfrogs has quit [Quit: connection reset by purr]
jmcantrell has joined #foot
chilledfrogs has joined #foot
krobelus has quit [Ping timeout: 240 seconds]
cbb has quit [Quit: cbb]
Biolunar has quit [Ping timeout: 248 seconds]
th3r00t has joined #foot
th3r00t has quit [Client Quit]
zayd has quit [Remote host closed the connection]
mvt has joined #foot