I manufactured a little tool offering similar functionality, without the need of making use of xclip or xsel. stdout is copied to the clipboard and can be pasted once again while in the terminal. See: This can be just to provide you with a conceptual solution to protect this edge https://petskyonline-onlinestrore.blogspot.com/2025/07/how-to-choose-and-maintain-perfect-dog.html