https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118693
--- Comment #8 from Jonathan Wakely <redi at gcc dot gnu.org> --- N.B. you can use xclip (for X11) or wl-paste (for Wayland) to pipe the clipboard contents to the program's standard input, without involving the tty.