summaryrefslogtreecommitdiffstats
path: root/konsole/konsole/TEmulation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'konsole/konsole/TEmulation.cpp')
-rw-r--r--konsole/konsole/TEmulation.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/konsole/konsole/TEmulation.cpp b/konsole/konsole/TEmulation.cpp
index 8dd6da437..39aeab542 100644
--- a/konsole/konsole/TEmulation.cpp
+++ b/konsole/konsole/TEmulation.cpp
@@ -395,6 +395,11 @@ void TEmulation::copySelection() {
TQApplication::clipboard()->setText(t);
}
+TQString TEmulation::getSelection() {
+ if (connected) return scr->getSelText(true);
+ return TQString::null;
+}
+
void TEmulation::streamHistory(TQTextStream* stream) {
scr->streamHistory(stream);
}