dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.8.0 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
st3r4g has quit [Quit: おやすみ]
<cbb> ericonr: no worries
<ericonr> cbb: I added it, but doesn't seem to have worked :/
<cbb> ericonr: you'll need to restart tmux
<cbb> e.g. with: tmux kill-server
<ericonr> right, I did that
<ericonr> hmmm
<ericonr> I didn't reinstall foot-terminfo
<ericonr> only foor
<cbb> ericonr: "foot-terminfo", as in a package?
<ericonr> yes
<ericonr> but it didn't werk
<cbb> if you're doing it as a package, foot-terminfo is the one you need to update
<cbb> but how are you patching the package with the new changes?
<cbb> are you using the AUR packages?
<ericonr> nope, I'm on void
<ericonr> unpack sources, fix, finish build works pretty well to test such things out
<ericonr> I wonder if this has to do with me running an admittedly fucky setup rn
<ericonr> my curses related programs come from ncurses, but tmux and htop are using ncurses
<ericonr> uh
<ericonr> s/come from ncurses/come from netbsd-curses/
<cbb> ericonr: oh, yeah that's quite possibly what's causing it
<cbb> I think netbsd-curses uses a separate terminfo database
<cbb> ericonr: what output do you get for these commands:
<cbb> toe -V
<cbb> toe | wc -l
<cbb> toe -a | wc -l
<cbb> infocmp -x foot | grep Tc
<ericonr> cbb: turns out I'm using ncurses progs after all, I don't even know what I have installed any more :p
<ericonr> 1) 6.2.20200212 2) 2 3) 102 + complaint "toe: couldn't open terminfo file alacritty.info." 4) " am, bce, bw, ccc, hs, km, mir, msgr, npc, xenl, AX, Tc, XT,"
<ericonr> toe shows alacritty{,-direct}
<cbb> ericonr: what about: infocmp -x foot | head -n1
<cbb> Also, try running the example I mentioned before (from https://gist.github.com/XVilka/8346728)
<ericonr> # Reconstructed via infocmp from file: /usr/share/terminfo/f/foot
<cbb> the third example; starting with "awk"
<ericonr> works inside and outside tmux
<cbb> you get a proper color gradient?
<ericonr> yup
<cbb> hmmm, ok
<cbb> so that means true color is work then
<cbb> working*
<cbb> so not the cause of your original problem
<ericonr> ok, makes sense
<ericonr> I supposedly copied the color scheme straight from my alacritty config, so it should werk
<cbb> does the problem go away if you use the default color scheme in foot?
<ericonr> it's still almost invisible
<ericonr> but actually there
<cbb> hmm, if I try: foot --config=/dev/null htop
<cbb> it's pretty readable for me
<ericonr> cbb: the issue is readability of htop inside tmux
<cbb> ericonr: ah yeah, although it's still the same with: foot --config=/dev/null tmux new-session htop
<cbb> are you using anything that affects the color scheme, like e.g. pywal
<cbb> ericonr: I think the problem is simply a lack of contrast between the background and foreground colors
<cbb> but I'm not sure why your colors are different to mine with an empty config
<cbb> I've run out of ideas tbh
<cbb> ericonr: could you upload a screenshot of the full htop screen?
<ericonr> that's with my custom color scheme
<cbb> what about with: foot --config=/dev/null tmux new-session htop
<cbb> ericonr: hmm, actually never mind
<cbb> I just noticed it's a side by side of outside and inside tmux
<cbb> doesn't look like a contrast problem
<cbb> ericonr: how many other terminals have you tried? just one?
<ericonr> cbb: terminals -> like foot:
<ericonr> ?
<ericonr> it used to look like normal on alacritty
<cbb> ericonr: it'd be interesting to know if the same thing happens in any other terminals I mean
<cbb> besides foot and alacritty
<cbb> or besides foot even
<cbb> I can't reproduce the problem.....otherwise I'd try a few myself
<cbb> kitty and xfce-terminal would be good ones to try
<ericonr> I have tilix as well, it werks
sosodank has joined #foot
<sosodank> hey @dknl, i fixed up my ASU implementation, and [xray] suddenly got a lot chunkier on foot. looking into it
<sosodank> hrmmm, maybe not, belay that feedback
<dnkl> sosodank: I noticed yesterday, while running notcurses-info, that the ASUs where inverted in 9/10 times. I.e I got ESU before BSU. Could that be the reason?
yyp has joined #foot
<cbb> dnkl: have you taken a look at https://codeberg.org/dnkl/foot/pulls/616 ?
<cbb> I'm wondering if it'd make sense to do away with foot-direct at some point
<dnkl> cbb: just reviewed it
<dnkl> Yeah, was just thinking that
<dnkl> Need to see if Emacs works with the regular one... 😅
<cbb> apparently emacs added another capability
<dnkl> cbb: really nice research btw
<dnkl> :/
<dnkl> I know they added a custom one before *-direct terminates came about
<cbb> I'm not sure if things have changed since, but it was mentioned somewhere in the kitty issue I linked
<cbb> they added something like "setaf24"
<cbb> but said it would be "mteporary"
<cbb> temporary*
<dnkl> Last i checked they depended on *-direct, falling back to their old custom capability
<dnkl> Was hoping they would add support for the new ones too...
<cbb> setrgbf/setrgbb seem eminently sensible to me
<dnkl> cbb: yeah, to me as well
<cbb> If we get a "vote" by what we support, I'd definately vote for those
<dnkl> The *-direct way of doing things always struck me as odd
<cbb> dnkl: yeah, me too
<cbb> it always struck me as doomed to fail too
<dnkl> sosodank: thinks are looking good after your last ASU updates!
<cbb> it's not really even a half solution
<cbb> since no one uses it
<dnkl> cbb: yeah. Having users manually switch terminfo is a really bad idea
novakane has joined #foot
<dnkl> cbb: no support for setrgbf/b in emacs yet (checked the latest sources)
<dnkl> But, it looks like they now check for COLORTERM
<cbb> dnkl: ah, nice
<cbb> that's one way of doing it I guess
<cbb> It always pains me to see so little unification with all these new sequences
<cbb> and capaiblities and env vars...
<cbb> I think terminfo is part of the problem to be honest
<dnkl> cbb: COLORTERM was added in emacs 28, which hasn't been released yet.
<dnkl> They also appear to be open to patches
<dnkl> Yeah, the fact that terminfo is so tightly couple with ncurses probably has something to do with it so well...
<cbb> dnkl: yeah, true
<cbb> and it's basically at the mercy of a single author
<cbb> for better or worse
<cbb> tbh, Dickey has done an amazing job over the years
<cbb> be he does stand in the way of progress sometimes
<dnkl> cbb: from what I've seen, he straight out rejects terminfo updates involving capabilities not used by ncurses.
<cbb> yeah
<cbb> he removed some instances of Tc that managed to make their way into the ncurses terminfo db
<cbb> because it's "non-standard"
<cbb> even though `RGB` is also technically non-standard
<dnkl> This is why I've more or less changed my mind about upstreaming our terminfo. Even if we did, it would be incomplete.
<cbb> yeah, I was going to mention that
<cbb> we'd have to probably remove Tc as part of upstreaming it
<cbb> even though it serves a real world purpose
<cbb> I've been thinking for ages about what an ideal replacement for terminfo should look like in $CURRENT_YEAR
<cbb> I have a bunch of ideas floating around in my head
<cbb> I really should write it down somewhere
<dnkl> cbb: there's always terminal-wg, where there's already a long discussion... ;)
<cbb> dnkl: yeah, I think I read that a while back
<cbb> I think for any progress to be made, someone has to put in a ton of work first to make something coherent
<cbb> and then say: "here, I made this"
<cbb> otherwise the discussions there go nowhere
mvdan has quit [Quit: Bridge terminating on SIGTERM]
priner[m] has quit [Quit: Bridge terminating on SIGTERM]
caughtquick[m] has quit [Quit: Bridge terminating on SIGTERM]
testuser[m]1 has quit [Quit: Bridge terminating on SIGTERM]
yyp has quit [Remote host closed the connection]
<cbb> dnkl: have you ever seen this page before?
<cbb> the author seems to be open to adding more terminals
novakane has quit [Ping timeout: 258 seconds]
novakane has joined #foot
yyp has joined #foot
sosodank has quit [Remote host closed the connection]
yyp has quit [Remote host closed the connection]
cbb has quit [Quit: WeeChat 3.2]
sosodank has joined #foot
yyp has joined #foot
<dnkl> cbb: no, I hadn't seen that one. Ambitious...
yyp has quit [Read error: Connection reset by peer]
yyp has joined #foot
yyp has quit [Ping timeout: 246 seconds]
novakane has quit [Ping timeout: 256 seconds]
novakane has joined #foot
amk has quit [Remote host closed the connection]
st3r4g has joined #foot
amk has joined #foot
yyp has joined #foot
novakane has quit [Quit: WeeChat 3.2]
novakane has joined #foot
yyp has quit [Ping timeout: 246 seconds]
yyp has joined #foot
<ericonr> can I ask fuzzel questions here? https://0x0.st/-p07.png seems to be a worst case scenario of https://codeberg.org/dnkl/fuzzel/issues/21
<ericonr> it loads the font twice, each time with different DPI
<ericonr> so some entries are bigger and some smaller
<ericonr> (seems deterministic which entry does what though)
sosodank has quit [Remote host closed the connection]
<dnkl> ericonr: I agree it looks DPI related, but I think this is quite different. It's supposed to redraw *everything* on a DPI change
<dnkl> are you seeing this on 1.6?
<dnkl> ericonr: oooh, hold on... might be the new text run cache (text shaping) that's not being wiped
<ericonr> dnkl: yes, 1.6.0
<ericonr> can I help in testing that hypothesis?
<dnkl> ericonr: absolute. give me a couple of minutes and I'll have a patch for you :)
<dnkl> pretty sure this _is_ the cause
<dnkl> there cached text run is never destroyed, except on exit
yyp has quit [Remote host closed the connection]
<ericonr> ok, nice!
yyp has joined #foot
<ericonr> a dpi-aware=no setting would still have hidden the bug, wouldn't it?
<dnkl> ericonr: not necessarily. If we guess wrong monitor (that's whats happening here - we're guessing which monitor well appear on, and uses its DPI), then we would have gotten similar results if the scaling factor differed between the guessed and actual monitor
<ericonr> dnkl: building now :)
<ericonr> ok!
<ericonr> it's alive :D
<dnkl> ericonr: nice! thanks for testing so quickly :)
<ericonr> no worries :)
yyp has quit [Remote host closed the connection]
cbb has joined #foot
<cbb> dnkl: I was just looking at https://codeberg.org/dnkl/foot/pulls/618
<cbb> does foot not support non-latin scripts?
<cbb> the ones I've tried all seem to work well
<dnkl> cbb: it was perhaps sloppily expressed. we don't support e.g. RTL scripts, or anything that requires text shaping
<cbb> ah, ok
<dnkl> Unicode glyphs in general is no problem
<cbb> yeah I thought that might be what you meant
<dnkl> *codepoints
<cbb> so that's just Hebrew and Arabic then
<cbb> or are there others?
<dnkl> cbb: those are the obvious ones. pretty sure there are more, that are either RTL, or requires text shaping. I know I've seen them, but they are less known
<dnkl> of course, in theory, we now _do_ support LTR scripts with 3- or more column glyphs. But in reality, I think the only one that will actually work is emojis
<dnkl> My point really, is that what we currently do, wcswidth(grapheme), is broken, and I'm pretty sure it's broken for any non-emoji LTR script as well. Hence #618 would be an improvement. But still far from correct
<cbb> ah ok, much more nuanced than I thought
<cbb> I thought you were just declaring all non-latin scripts aren't supported
<cbb> lol
<cbb> unsupported*
<dnkl> cbb: I've updated the PR description. Hopefully it's a bit more clear now
* dnkl is stressed out today
<cbb> :) I'll try not to contribute to that
<dnkl> cbb: no worries, you've only been helpful :)
<dnkl> so far ;)
<cbb> ;)
<dnkl> I'll be doing a 1.8.1 release _very_ soon. The fixes for the embarrasing URL key-binding bug, as well as the grapheme clustering issue needs to get out there. And your terminfo additions are _very_ welcome too
<cbb> I wanted to make sure I understood the change, since I've been thinking about the problem of grapheme width from an app point of view too
<Arnavion> Oh, I missed 1.8.0
<dnkl> grapheme clustering issue not being #614, but the fact that we reset the grapheme clustering state after each codepoint
<dnkl> Arnavion: if you want to, I can keep a (private) list of emails to send out release announcements in the future
<dnkl> s/614/618
<Arnavion> Should I PM you?
<dnkl> Arnavion: sure, that, or email me. Mail is in the git log
<Arnavion> Sent mail
<dnkl> cbb: I think its better to do small incremental improvements to grapheme handling, rather trying to get everything correct from the get go. As I suspect that we'll never get to "get go" :)
<dnkl> Arnavion: thanks, got it
<dnkl> Arnavion: now I just have to remember to write that mail. Bash me with hammer if you don't get a 1.8.1 release mail (though exact release date is yet to be decided).
<dnkl> :)
<ericonr> dnkl: idk if that's the case for Arnavion, but you can send announcement email to all package maintainers via repology
<Arnavion> Should I wait for 1.8.1 if the bugs you mentioned above are serious enough?
<dnkl> ericonr: Arnavion: that would certainly be much easier. Repology doesn't automatically send emails to registered users?
<ericonr> dnkl: I don't know if there's an automatic setup, but the advantage is you get a list of emails directly
<dnkl> Arnavion: you might want to start looking at the packaging differences between 1.7 and 1.8 (especially wrt utf8proc). But yeah, I'm planning on a 1.8.1 release this week. Unless something comes up. So might as well wait
<ericonr> still have to remember to send it ;)
<dnkl> ericonr: sure. thanks, will look into it
<dnkl> Arnavion: let me know if you are on the repology list for foot. I don't see you there yet. If not, I'll send emails to both repology and directly to you
cbb has quit [Quit: WeeChat 3.2]
<Arnavion> So if I understand correctly, this website is supposed to automatically parse out the package owner from the distro's website, yes?
<Arnavion> because I checked a bunch of packages for OpenSUSE and none of them have maintainers, so I assume they don't support getting that info out of build.opensuse.org
yyp has joined #foot
<dnkl> Arnavion: certainly sounds like it. that's a bit surprising
<Arnavion> It wouldn't help anyway, because it would get the wrong maintainer (it would get the OS repo's maintainer, not the devel package's maintainer)
<dnkl> Arnavion: perhaps they know that, and ignore opensuse on purpose...
<Arnavion> Yeah, it'd need a bit of spelunking
<Arnavion> It doesn't help that the package name on build.opensuse.org and the package filename in the RPM repo isn't the same, because one b.o.o package is one RPM specfile, and one RPM specfile can generate arbitrarily many RPM repo packages
<Arnavion> so I'm not sure they can even know what the b.o.o URL is without downloading the RPM and extracting the .spec
yyp has quit [Read error: Connection reset by peer]
yyp has joined #foot
yyp has quit [Remote host closed the connection]
yyp has joined #foot
yyp has quit [Read error: Connection reset by peer]
yyp has joined #foot
yyp has quit [Remote host closed the connection]
yyp has joined #foot
novakane has quit [Quit: WeeChat 3.2]
cbb has joined #foot
yyp has quit [Remote host closed the connection]
st3r4g has quit [Quit: おやすみ]
mvdan has joined #foot
testuser[m]1 has joined #foot
priner[m] has joined #foot
caughtquick[m] has joined #foot
mvdan has quit [Quit: node-irc says goodbye]
caughtquick[m] has quit [Quit: node-irc says goodbye]
priner[m] has quit [Quit: node-irc says goodbye]
testuser[m]1 has quit [Quit: node-irc says goodbye]
mvdan has joined #foot
testuser[m]1 has joined #foot
priner[m] has joined #foot
caughtquick[m] has joined #foot