Manipulate Clipboard in C on Mac OS X

How to copy text to clipboard in C or using command line command?

+3
source share
1 answer

pbcopy and pbpaste are your friends on the command line:

echo 'send' | pbcopy
pbpaste > receive.txt

See the Pasteboard Manager Handbook and guide for details on this in C.

+4
source

Source: https://habr.com/ru/post/1740407/


All Articles