aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdrian Kummerlaender2015-12-12 23:52:41 +0100
committerAdrian Kummerlaender2015-12-12 23:52:41 +0100
commit93684cccb13489a183aabb7940ec162a1f25fa5c (patch)
treeed1f40d196168da207680e8a0fde85d2ed7550d4 /src
parentd1200ca432038a34a9fa063244136e737ce47735 (diff)
downloadMetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.tar
MetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.tar.gz
MetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.tar.bz2
MetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.tar.lz
MetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.tar.xz
MetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.tar.zst
MetaTerm-93684cccb13489a183aabb7940ec162a1f25fa5c.zip
Add PID to `ls` output
Diffstat (limited to 'src')
-rw-r--r--src/command/commands.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command/commands.js b/src/command/commands.js
index 13bb1c2..399f0b1 100644
--- a/src/command/commands.js
+++ b/src/command/commands.js
@@ -48,7 +48,10 @@ function exec(output, args) {
function ls(output) {
terminalList.iterate(function(item) {
if ( item.terminal !== null ) {
- output.log(item.index + ': ' + item.terminal.program);
+ output.log(
+ item.index + ': ' + item.terminal.program +
+ ' (' + item.terminal.getPID() + ')'
+ );
}
});
}