I want to be able to write escape codes to the terminal to use kitty’s clipboard integration. I could potentially do this using
echo -to-file /dev/tty but the problem is that commands are executed in the context of the server, which may not even be running inside a terminal.
My current solution is using the
tty command outside Kakoune to get the specific file I need (like
/dev/pts/0), but being able to do it inside kakoune would be nice. Any tips?