操纵在Mac OS X在C剪贴板 [英] Manipulate the Clipboard in C on Mac OS X
本文介绍了操纵在Mac OS X在C剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你如何将文本复制到C或用命令行命令?
How do you copy text to the clipboard in C or with a Command-Line command?
推荐答案
pbcopy和pbpaste是在命令行上你的朋友:
pbcopy and pbpaste are your friends on the command line:
echo 'send' | pbcopy
pbpaste > receive.txt
看看的<一个href=\"http://developer.apple.com/mac/library/documentation/Carbon/Reference/Pasteboard_Reference/Reference/reference.html\"相对=nofollow>纸板管理器参考和<一个href=\"http://developer.apple.com/mac/library/documentation/Carbon/Conceptual/Pasteboard_Prog_Guide/paste_intro/paste_intro.html#//apple_ref/doc/uid/TP40001439\"相对=nofollow>指南的详细信息,用C这样做。
Take a look at the Pasteboard Manager Reference and guide for details on doing this in C.
这篇关于操纵在Mac OS X在C剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文