forked from qt-creator/qt-creator
Terminal: Add support for copy (OSC52)
Allows terminal apps like vim to set the clipboard, even from inside an ssh/remote shell. Change-Id: I1d068737ef65bb4541c3fc9c43870986865f1b45 Reviewed-by: Cristian Adam <cristian.adam@qt.io>
This commit is contained in:
@@ -179,4 +179,9 @@ void ShellIntegration::prepareProcess(Utils::Process &process)
|
||||
process.setEnvironment(env);
|
||||
}
|
||||
|
||||
void ShellIntegration::onSetClipboard(const QByteArray &text)
|
||||
{
|
||||
setClipboardAndSelection(QString::fromLocal8Bit(text));
|
||||
}
|
||||
|
||||
} // namespace Terminal
|
||||
|
||||
Reference in New Issue
Block a user