micr0 has quit [Remote host closed the connection]
ChanServ has quit [shutting down]
ChanServ has joined #foot
novakane has joined #foot
novakane has quit [Quit: WeeChat 3.2]
ericonr has quit [Ping timeout: 252 seconds]
ericonr has joined #foot
mvdan has quit [Quit: Bridge terminating on SIGTERM]
jcgruenhage has quit [Quit: Bridge terminating on SIGTERM]
caughtquick has quit [Quit: Bridge terminating on SIGTERM]
testuser[m] has quit [Quit: Bridge terminating on SIGTERM]
priner has quit [Quit: Bridge terminating on SIGTERM]
mvdan has joined #foot
caughtquick has joined #foot
jcgruenhage has joined #foot
priner has joined #foot
testuser[m] has joined #foot
rumpelsepp has joined #foot
<rumpelsepp>
Hey hey. I am currently trying the OSC52 clipboard stuff. I want to write a shell script which reads the clipboard content via OSC52. How can I prevent that foot also writes the answer to the interactive shell that starts my test script?
<rumpelsepp>
Currently I am trying this: echo -e "\e]52;c;?\e\\" && read -r -t0 -s data
<rumpelsepp>
It works and the `data` variabe contains the answer. But I also have the answer present on my commandline prompt.
<rumpelsepp>
Oh, I am a monkey, the data var is empty…
novakane has joined #foot
ecs has quit [Changing host]
ecs has joined #foot
dutchie has quit [Ping timeout: 272 seconds]
dutchie has joined #foot
<dnkl>
rumpelsepp: did you get it working?
<rumpelsepp>
I think so, thanks for asking. I realized that the returned data is terminated by an escape character. (Iirc it's not in the manpage). Then it was easy.
<rumpelsepp>
Would paste the snippet but I am on my phone currently
<dnkl>
rumpelsepp: you're right about the man page. That should be fixed. Remind me in a couple of days if I haven't updated the docs... :)
novakane has quit [Quit: WeeChat 3.2]
<dnkl>
rumpelsepp: fwiw, the terminator is the 7-bit variant of ST: "\e\\". i.e ESC followed by a single backslash.
<rumpelsepp>
Yeah right. I ignored the backslash for the time being. :D
<rumpelsepp>
<dnkl "stefan: you're right about the m"> Will do :)