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_>
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]