3 ms·
I’m curious how this is implemented to work with all the different window systems without dependencies. edit: OK I looked at the source code, it does actually i
by puffybuf 4y ago
I’m curious how this is implemented to work with all the different window systems without dependencies.
edit: OK I looked at the source code, it does actually include the windowing system headers and use the base libraries.
I'm glad there are people not afraid to use the latest version of programming language features. I always try to use C++20 for new projects, but often the dependencies prevent me.
If you want to use the clipboard from cmdline you can also use
xclip (for Xorg)
wl-clipboard (for wayland)
and on macOS you can use the builtin commands: pbpaste pbcopy (see the man page)
These are what I’ve been using, but I might change now.
- pimlottc 4y ago> xclip (for Xorg) There's also xsel as a long time utility for Xorg as well.