dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.17.2 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
diaspora39 has joined #foot
kode543 has joined #foot
pvsr_ has joined #foot
tachi_ has joined #foot
tommybomb_ has joined #foot
leon-p_ has joined #foot
coder_kalyan_ has joined #foot
gbrlsnchs_ has joined #foot
ursa-major_ has joined #foot
lh_ has joined #foot
SusanTheNerd2_ has joined #foot
diaspora3 has quit [Read error: Connection reset by peer]
coder_kalyan has quit [Read error: Connection reset by peer]
diaspora39 is now known as diaspora3
gbrlsnchs has quit [Read error: Connection reset by peer]
leon-p has quit [Ping timeout: 268 seconds]
lh has quit [Read error: Connection reset by peer]
ursa-major has quit [Read error: Connection reset by peer]
SusanTheNerd2 has quit [Read error: Connection reset by peer]
leon-p_ is now known as leon-p
tommybomb has quit [Read error: Connection reset by peer]
tommybomb_ is now known as tommybomb
pvsr has quit [Read error: Connection reset by peer]
pvsr_ is now known as pvsr
tachi has quit [Read error: Connection reset by peer]
tachi_ is now known as tachi
gbrlsnchs_ is now known as gbrlsnchs
kode54 has quit [Read error: Connection reset by peer]
kode543 is now known as kode54
coder_kalyan_ is now known as coder_kalyan
tachi is now known as Guest8642
SusanTheNerd2_ is now known as SusanTheNerd2
ursa-major_ is now known as ursa-major
kode54 has quit [Quit: The Lounge - https://thelounge.chat]
kode54 has joined #foot
cbb has joined #foot
chimo has quit [Remote host closed the connection]
chimo has joined #foot
sefidel has quit [Remote host closed the connection]
sefidel has joined #foot
an3223 has quit [Remote host closed the connection]
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #foot
an3223 has joined #foot
runxiyu_ has joined #foot
<runxiyu_> There are some font sizes where underlines disappear. I'm using the DejaVu Sans Mono fonts and I don't really want to change fonts. Any ideas on how to fix?
<dnkl> runxiyu_: I can't reproduce. This used to be an issue way back before foot 1.8. I assume you're not using an ancient version of foot?
<runxiyu_> foot version: 1.17.2 -pgo +ime +graphemes -assertions
<runxiyu_> Running on Asahi Linux Apple M1 with Sway, no fractional scaling, dpi-aware=0
<dnkl> runxiyu_: no idea then. Doesn't happen here, with Dejavu as primary font
<runxiyu_> hmm
<dnkl> check foot -d info output, and see if anything stands out
<dnkl> or if everything appears ok, give me the font and cell width/height lines (from the log output) for the sizes where it happens
<runxiyu_> info: terminal.c:813: cell width=7, height=14
<runxiyu_> info: fcft.c:848: /usr/share/fonts/dejavu-sans-mono-fonts/DejaVuSansMono.ttf ; from Asahi repos
<dnkl> at that pixelsize I get a cell height of 15
<dnkl> that could explain why the underline isn't visible for you
<dnkl> but the cell width/height is based on the font metrics, which are set by freetype, not foot or fcft
<runxiyu_> ah okay
rrogalski has quit [Read error: Connection reset by peer]
<runxiyu_> I don't think I did anything weird to freetype, hm
<runxiyu_> Oh I'm using default :size=20 line-height=24
<dnkl> ah, if you explicitly set the line-height, then yes, that could cause issues
<dnkl> (when you zoom in/out)
<dnkl> when you set a custom line-height, it is scaled by the same amount as the font, when you resize it. But for small font sizes (and 12px is small), rounding errors can and do occur
<runxiyu_> ahh
<runxiyu_> I'll stop using line-height for now and perhaps modify the font to be a bit taller
rrogalski has joined #foot
<runxiyu_> Alright this feels so much better
<dnkl> we should add a warning (in the man page) to all the options that override font metrics...
<runxiyu_> agreed
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #foot
krobelus has joined #foot
<krobelus> dnkl: I think for fish, simple CSI push/pop won't work; if I run "fish1 -> ssh -> fish2" and the connection drops, then fish2 has no chance to pop. So the flag stack will be corrupted. It seems better to always set the flags directly. I'm not sure if there is a use case for "nesting" where the push/pop semantics are really necessary. The shell wants to reset all flags whenever it surrenders or
<krobelus> acquires control of the terminal (before or after running an external program), it seems like other programs can do the same. Unfortunately there is still a problem for "bash -> ssh -> fish", I guess ssh should clean up (actually that might work better with the stack, if we allow getting stack size and truncating it)
<dnkl> krobelus: I think for both XTPUSHCOLORS, and the kitty kbd, what you really want is: push, request current stack slot/level from terminal, do your stuff, then explicitly restore to the slot before your push
<dnkl> don't remember; can you query the current stack depth with the kitty kbd?
<krobelus> dnkl: the problem is that "do your stuff" is a blocking "read(stdin)", and if that gets interrupted by a connection drop I can't clean up
<dnkl> ah, right. Correct, for all this to work, you have to have something locally that also restores/cleans up
<krobelus> I don't think there's a way to query stack depth yet, but that should be easy to add. Probably that's the way to detect and fix leaked pushes
<krobelus> I wonder if SSH is open to cleaning up unconditionally
<krobelus> I guess there is no reason to ever want a push event to outlive ssh
<cbb> dropped connections leaving the terminal in a weird state isn't really specific to this case
<cbb> it can leave private modes set etc.
<krobelus> cbb: right, maybe we can clean up all of these
<krobelus> unfortunately it's a leaky abstraction when used with tmux for example. If I reconnect and do "tmux a", the program running inside of tmux will have no idea that it needs to reinitialize terminal modes
armin has quit [Ping timeout: 272 seconds]
cbb has quit [Quit: cbb]
armin has joined #foot
armin has quit [Ping timeout: 268 seconds]
armin has joined #foot
<dnkl> rockorager: just an FYI; I
<dnkl> I'm not merging the resize notifications PR until I hear from you
<dnkl> (i.e. waiting for some signs the spec has been finalized/agreed upon, and hopefully picked up by other terminals/applications)
<rockorager> dnkl: ack
xoip has quit [Quit: WeeChat 4.3.4]
xoip has joined #foot
<delthas> dnkl: rockorager: is there anything an app should do with light/dark mode? like, it a terminal switches to dark mode, it will also change the mapping of its colors, right? so i wouldn't need to do anything? whats the use case for the spec?
mtm has joined #foot
an3223 has quit [Remote host closed the connection]
an3223 has joined #foot
<rockorager> delthas: I think you might be talking about a different spec? dnkl is referring to the in-band resize spec
<delthas> yes, unrelated to previous messages
<rockorager> Ah. the light dark mode use case (mode 2031) is for rgb color schemes mostly
<rockorager> so if you are neovim with a heavily rgb based theme, changing your DE to light or dark will flow all the way through
kraftwerk28 has joined #foot
kraftwerk28 has quit [Remote host closed the connection]
kode54 has quit [Quit: The Lounge - https://thelounge.chat]
kode54 has joined #foot