diff options
author | Adrian Kummerlaender | 2015-12-12 23:52:41 +0100 |
---|---|---|
committer | Adrian Kummerlaender | 2015-12-12 23:52:41 +0100 |
commit | 93684cccb13489a183aabb7940ec162a1f25fa5c (patch) | |
tree | ed1f40d196168da207680e8a0fde85d2ed7550d4 | |
parent | d1200ca432038a34a9fa063244136e737ce47735 (diff) | |
download | MetaTerm-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
-rw-r--r-- | src/command/commands.js | 5 |
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() + ')' + ); } }); } |