From 2e394a47649c5d4549d4f79b44a3c86e77272f64 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Fri, 19 Nov 2010 22:27:46 +0000 Subject: [PATCH] As suggested by Humdinger, replace "%p" by "--", if the shell is the active process. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39528 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/terminal/TitlePlaceholderMapper.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/apps/terminal/TitlePlaceholderMapper.cpp b/src/apps/terminal/TitlePlaceholderMapper.cpp index 0da52d27dd..236d5ed122 100644 --- a/src/apps/terminal/TitlePlaceholderMapper.cpp +++ b/src/apps/terminal/TitlePlaceholderMapper.cpp @@ -47,8 +47,11 @@ TitlePlaceholderMapper::MapPlaceholder(char placeholder, int64 number, } case 'p': - // process name - _string = fProcessInfo.Name(); + // process name -- use "--", if the shell is active + if (fProcessInfo.ID() == fProcessInfo.ShellProcessID()) + _string = "--"; + else + _string = fProcessInfo.Name(); return true; }