dnkl changed the topic of #foot to: Foot - fast, lightweight and minimalistic Wayland terminal emulator || 1.9.2 || https://codeberg.org/dnkl/foot || channel logs: https://libera.irclog.whitequark.org/foot
hspak has joined #foot
digital_mystik has quit [*.net *.split]
Arnavion has quit [*.net *.split]
Arnavion has joined #foot
digital_mystik has joined #foot
gtms has joined #foot
<rumpelsepp> I have a noob question according to (again) OSC52. This time I am struggling with pasting. How is reading the answer from the terminal supposed to work? When I try to read the answer, read() is stuck in reading from the keyboard, if I read a second time the answer from the terminal is read.
<rumpelsepp> I'll put together a python snippet, one second.
<rumpelsepp> Here you go: http://ix.io/3CLI
<rumpelsepp> The first f.read() is stuck until I press ctrl+d; the second one catches the OSC52 response (and a few newlines until I press ctrl+d again).
<rumpelsepp> What am I doing wrong? Second question: Is it better to use /dev/tty for this OSC stuff or just stick to stdin/stdout? The former cannot by redirected while the latter is easier to debug.
<dnkl> rumpelsepp: I don't see anything obvious wrong. Let me experiment a bit when I get to the office
<dnkl> /dev/tty is definitely the right thing to use though
<dnkl> armin: terminal emulators can be very personal, for sure :)
<dnkl> I wouldn't hold my breath for clickable URLs. I understand it would make foot more "accessable" to new users. But that in itself isn't something we strive for
<dnkl> rumpelsepp: hmm, could be your query isn't flushed? You want to make sure line buffering is disabled.
<dnkl> But printing a newline after your query would be an easy way to test if buffering is the problem
<rumpelsepp> It should be flushed, since I am writing to stdout directly. Let me verify.
<rumpelsepp> Think you nailed it. strace revealed it… Thanks, I was searching at the wrong front…
<dnkl> rumpelsepp: yeah... Stdout *is* line buffered by default (unless redirected)
<rumpelsepp> yeah, you're right. I thought it is disabled in this .buffer. thing in python.
<dnkl> rumpelsepp: probably better to write directly to /dev/tty
<rumpelsepp> yeah… Thank you for the heads up according line buffering! :)
novakane has joined #foot
<dnkl> rumpelsepp: 404 ;)
<rumpelsepp> yeah, matrix ate some chars
<dnkl> No worries, found it anyway
<dnkl> Nice!
<rumpelsepp> there might be a few bugs left. But it works basically.
<rumpelsepp> yeah nice. Now I have osc-copy and osc-paste on my server and can use it like wl-copy wl-paste. Quality of life improvement. 🙂
eoli3n has left #foot [#foot]
st3r4g has joined #foot
gtms has quit [Remote host closed the connection]
cbb has joined #foot
st3r4g has quit [Ping timeout: 260 seconds]
diniwed has joined #foot
cbb has quit [Quit: WeeChat 3.3]
gtms has joined #foot
gtms has quit [Remote host closed the connection]
novakane has quit [Quit: WeeChat 3.3]
diniwed has quit [Ping timeout: 244 seconds]
diniwed has joined #foot