aboutsummaryrefslogtreecommitdiff
path: root/src/widget
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-12 23:37:11 +0100
committerAdrian Kummerlaender2015-12-12 23:37:11 +0100
commitd1200ca432038a34a9fa063244136e737ce47735 (patch)
treed687b0fda491b2bac38defb8f42b96e6b08f459b /src/widget
parente3f7344551a387653c2271ecc24d95051a04a2d1 (diff)
downloadMetaTerm-d1200ca432038a34a9fa063244136e737ce47735.tar
MetaTerm-d1200ca432038a34a9fa063244136e737ce47735.tar.gz
MetaTerm-d1200ca432038a34a9fa063244136e737ce47735.tar.bz2
MetaTerm-d1200ca432038a34a9fa063244136e737ce47735.tar.lz
MetaTerm-d1200ca432038a34a9fa063244136e737ce47735.tar.xz
MetaTerm-d1200ca432038a34a9fa063244136e737ce47735.tar.zst
MetaTerm-d1200ca432038a34a9fa063244136e737ce47735.zip
Expose session PID and current working directory
Diffstat (limited to 'src/widget')
-rw-r--r--src/widget/EmbeddedTerminal.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/widget/EmbeddedTerminal.qml b/src/widget/EmbeddedTerminal.qml
index 8a326ef..67d9a91 100644
--- a/src/widget/EmbeddedTerminal.qml
+++ b/src/widget/EmbeddedTerminal.qml
@@ -12,12 +12,13 @@ Item {
property int lines : settings.terminal.initialLines
property alias history : session.history
+ function getPID() { return session.getShellPID() }
+ function terminate() { return session.sendSignal(15) }
+
function select() { highlighter.select() }
function deselect() { highlighter.deselect() }
function displayOverlay() { overlay.displayBriefly() }
- function terminate() { return session.sendSignal(15) }
-
height: terminal.height
width: parent.width - settings.terminal.frameWidth