From 93684cccb13489a183aabb7940ec162a1f25fa5c Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sat, 12 Dec 2015 23:52:41 +0100 Subject: Add PID to `ls` output --- src/command/commands.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() + ')' + ); } }); } -- cgit v1.2.3