an3223 has quit [Remote host closed the connection]
aktina has joined #foot
krobelus has quit [Ping timeout: 246 seconds]
Ordoviz has joined #foot
Ordoviz has quit [Client Quit]
Ordoviz has joined #foot
aktina has quit [Ping timeout: 248 seconds]
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
krobelus has joined #foot
Ordoviz has quit [Ping timeout: 252 seconds]
Ordoviz has joined #foot
aktina has joined #foot
aktina has quit [Ping timeout: 252 seconds]
jmcantrell has quit [Ping timeout: 244 seconds]
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
auri has joined #foot
aktina has joined #foot
boomboxnation has quit [Read error: Connection reset by peer]
beerman has quit [Remote host closed the connection]
beerman has joined #foot
boomboxnation has joined #foot
beerman has quit [Remote host closed the connection]
beerman has joined #foot
boomboxnation-1 has joined #foot
aktina has quit [Ping timeout: 252 seconds]
aktina has joined #foot
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
an3223 has joined #foot
brucef0rte has joined #foot
brucef0rte has left #foot [#foot]
Ordoviz has quit [Ping timeout: 265 seconds]
andyrtr has quit [Ping timeout: 252 seconds]
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
orahcio has joined #foot
boomboxnation-1 has quit [Ping timeout: 260 seconds]
<ovf>
i might need a little help with my reading comprehension of the vt state machine: when i press f1, foot sends me ^[OP (aka 1b 4f 50). according to both vt100.net's diagram and vt.c, this is something like esc(O) print(P) which doesn't seem right. do the terminal->application communications use a different protocol, after all?
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
<krikakruka>
hey friends! is there a way to disable all colors/styling in foot? i used to have some success with 'TERM=xterm-mono foot' but i dont have that terminfo in my distro any more
<krikakruka>
TERM=xterm-old foot doesn't do the trick either
<rcf>
krikakruka: do you have ansi-mono? That might work in a pinch.
<rcf>
krikakruka: or, actually, you can cheat and use TERM=foot+base
Ordoviz has joined #foot
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
<dnkl>
ovf: ah, yes... I'd say all query replies and key codes are CSIs or DCSs, and thus do follow the same protocol. F1-F4 are the exception (along with the cursor keys and home/end/pgup/pgdown when they're in "application mode")
<dnkl>
if you're only parsing terminal replies, and key codes, "print" isn't really a thing, since it'll never send plain text. that should make it fairly easy to special case these keys
dutchie has quit [Remote host closed the connection]
dutchie has joined #foot
<krikakruka>
rcf: thanks, but no luck using foot+base, still colors/styling. i don't have ansi-mono terminfo either
<rcf>
krikakruka: note that applications don't always respect TERM anyway.
<krikakruka>
i've managed to turn it off most places, for example with t_Co=0 in vimrc, but some programs dont give me the choice
<krikakruka>
yeah
<krikakruka>
oh well
<rcf>
A lot of those are just blindly putting out ANSI sequences without regard for anything else.
<rcf>
A lot of shell prompt customizations do this, for example.
dutchie has quit [Remote host closed the connection]
<krikakruka>
i should reach out to the developers and ask. im using 'offpunk' a lot and would love to skip the colors
dutchie has joined #foot
dutchie has quit [Remote host closed the connection]
<krikakruka>
i get that people like some color in their terminals though
dutchie has quit [Remote host closed the connection]
dutchie has joined #foot
<dnkl>
krikakruka: if you mean "TERM=whatever foot" literally, that won't ever work since it'll be overwritten by foot. You need to set it in foot.ini
<krikakruka>
rcf: thanks! that helps a lot
<krikakruka>
dnkl: yeah i set it in foot.ini, but still colors
<dnkl>
some of the applications that don't respect TERM do respect NO_COLOR
<krikakruka>
i've set NO_COLOR also
<rcf>
Unfortunately offpunk isn't one of them
boomboxnation has quit [Read error: Connection reset by peer]
<dnkl>
I'd definitely ask them to consider supporting it
<krikakruka>
good idea
<krikakruka>
it seems like i should be able to turn it off in offpunk by setting the 'theme' command correctly. somehow i missed that one
<krikakruka>
offpunk is really good
boomboxnation has joined #foot
<krikakruka>
nice, it worked. 'theme link white, theme window_title white, theme title white' and so on in offpunkrc did the trick
<ovf>
dnkl: thank you! i think i massively overthought this by starting from the full vt state machine instead of looking at what i can actually get
boomboxnation-1 has joined #foot
boomboxnation-1 has quit [Ping timeout: 265 seconds]
andyrtr has joined #foot
andyrtr has quit [Client Quit]
andyrtr has joined #foot
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
jmcantrell has joined #foot
jmcantrell has quit [Client Quit]
jmcantrell has joined #foot
<ovf>
dnkl: am i right that i still want my function to be total, i.e. it should be ready to receive any byte sequence from the terminal, as one can just type any control sequence directly? despite that the terminal itself would only send me csi/dsc
cbb has joined #foot
<dnkl>
ovf: well... I lied a bit... unless you enable e.g. the advanced modes of the kitty keyboard protocol, you do have to handle plain ASCII, as that's how the terminal sends key presses for e.g. A-Z.
<dnkl>
you do *not* have to worry about escape sequences typed by the user - they are received and parsed by the terminal. All escapes you receive will be from the terminal itself
<dnkl>
of course, you also have to deal with escape, 0x1b, since it can _either_ be the start of an escape, or the ESC key. This is one of the major reasons why the extended keyboard modes are being adopted by both shells and editors
<dnkl>
if you do need to handle legacy input, you will have to special case at least the ESC key and F1-F4. I still think using a VT parser is the way to go though
boomboxnation has quit [Read error: Connection reset by peer]
<ovf>
dnkl: thanks! apropos nothing, i'm curious what kind of perf difference are you seeing from pgo?
boomboxnation has joined #foot
<dnkl>
recently, not much of a difference at all
<dnkl>
don't know if GCC has gotten worse at pgo, or better at non-pgo. or if we've managed to tag enough branches etc with hints for it to improve non-pgo performance
<dnkl>
the pgo:d binary is smaller in size however
<ovf>
interesting, thanks. is clang that much worse than gcc at compiling that state machine (i suppose that's where you are seeing any difference from pgo)
<dnkl>
i haven't benched any clang builds at all in a long time, I'm afraid
boomboxnation-1 has joined #foot
chilledfrogs has quit [Quit: connection reset by purr]
chilledfrogs has joined #foot
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
orahcio has quit [Remote host closed the connection]
orahcio has joined #foot
<rcf>
ovf: out of curiosity I did run vtebench on both clang and gcc builds, and the clang results were actually slightly better (though not enough to really notice).
boomboxnation-1 has quit [Ping timeout: 252 seconds]
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
orahcio has quit [Remote host closed the connection]
Ordoviz has quit [Quit: WeeChat 4.6.0]
orahcio has joined #foot
boomboxnation-1 has joined #foot
<ovf>
just for the record, the fact that the terminal won't pass me any escape sequences from user input is great news, although apparently not yet heard of in the ghostty-land
boomboxnation has quit [Read error: Connection reset by peer]
boomboxnation has joined #foot
boomboxnation-1 has quit [Quit: WeeChat 4.6.0]
boomboxnation-1 has joined #foot
chiselfuse has quit [Remote host closed the connection]