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
baltazar has quit [Ping timeout: 252 seconds]
baltazar has joined #foot
diaspora3 has quit [Quit: 🖕😃]
Biolunar has quit [Ping timeout: 268 seconds]
Biolunar has joined #foot
diaspora3 has joined #foot
kode54 has quit [Quit: The Lounge - https://thelounge.chat]
kode54 has joined #foot
<dnkl> rockorager: works for me :)
chiselfuse has quit [Remote host closed the connection]
chiselfuse has joined #foot
Biolunar has quit [Ping timeout: 272 seconds]
Biolunar has joined #foot
cbb has joined #foot
an3223 has joined #foot
sentriz has quit [Ping timeout: 246 seconds]
sentriz has joined #foot
bookworm has quit []
bookworm has joined #foot
sgm has joined #foot
cbb has quit [Quit: cbb]
cbb has joined #foot
alexherbo2 has joined #foot
chiselfuse has quit [Ping timeout: 260 seconds]
chiselfuse has joined #foot
<brocellous> Can someone explain to me why both foot and foot-direct exist? tmux does the same thing where tmux advertises 8 color and -direct full color
<brocellous> I understand from the manpage that most apps don't care, but what's the backstory here?
<cbb> running `infocmp -d foot foot-direct` should illustrate the difference
<cbb> the reason no one really uses -direct is because it's a dirty hack
<cbb> it not just in the case of foot, but all similarly named terminfo entries
<cbb> s/it not/not/
<cbb> if I remember correctly, it encodes some palette colors using the `SGR 38 ; 2 ; ...` format
<cbb> and causes various glitches with certain colors, the details of which I can't recall atm
lack has quit [Read error: Connection reset by peer]
lack has joined #foot
<cbb> TERM=xterm-256color tput setaf 12 | hexdump -C
<cbb> TERM=xterm-direct tput setaf 12 | hexdump -C
<brocellous> I know that they are different, I have seen the infocmp output.
<brocellous> I'm wondering why both exist.
<cbb> I'm guessing the *-direct entries were added as a hack, to shoehorn them into working with the pre-existing setaf/setab capabilities
<cbb> I think I've seen the reason explained in either the xterm or ncurses docs somewhere, but I've long since forgotten it
<dnkl> brocellous: there's no way to emit 24-bit colors with the non-direct terminfo, if you want to use terminfo capabilities only
<dnkl> tmux solved it in a better way, by adding new terminfo capabilities. But the ncurses way of doing it, is using the *direct terminfos.
<cbb> to answer the question "why do both exist?" more practically... it's basically because terminfo is legacy junk with lots of limitations and compat concerns papered over with hacks
<brocellous> dnkl: thanks, that explains it
<sewn> what sort of software does the author of foot use? (eg. compositor/distro)
cbb has quit [Quit: cbb]
alexherbo2 has quit [Remote host closed the connection]