Added ActiveProcessGroup() getter to Shell and TermView.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ad8276321c
commit
5a76a2c142
@ -231,6 +231,13 @@ Shell::FD() const
|
||||
}
|
||||
|
||||
|
||||
pid_t
|
||||
Shell::ActiveProcessGroup() const
|
||||
{
|
||||
return tcgetpgrp(fFd);
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
Shell::HasActiveProcesses() const
|
||||
{
|
||||
|
@ -44,6 +44,7 @@ public:
|
||||
int FD() const;
|
||||
pid_t ProcessID() const { return fProcessID; }
|
||||
|
||||
pid_t ActiveProcessGroup() const;
|
||||
bool HasActiveProcesses() const;
|
||||
|
||||
virtual status_t AttachBuffer(TerminalBuffer* buffer);
|
||||
|
@ -628,6 +628,13 @@ TermView::~TermView()
|
||||
}
|
||||
|
||||
|
||||
pid_t
|
||||
TermView::ActiveProcessGroup() const
|
||||
{
|
||||
return fShell != NULL ? fShell->ActiveProcessGroup() : -1;
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
TermView::IsShellBusy() const
|
||||
{
|
||||
|
@ -46,6 +46,7 @@ public:
|
||||
|
||||
virtual void GetPreferredSize(float* _width, float* _height);
|
||||
|
||||
pid_t ActiveProcessGroup() const;
|
||||
bool IsShellBusy() const;
|
||||
|
||||
const char* TerminalName() const;
|
||||
@ -73,7 +74,7 @@ public:
|
||||
BScrollBar* ScrollBar() const { return fScrollBar; };
|
||||
|
||||
void SetMouseClipboard(BClipboard *);
|
||||
|
||||
|
||||
virtual void SetTitle(const char* title);
|
||||
virtual void NotifyQuit(int32 reason);
|
||||
|
||||
@ -95,7 +96,7 @@ public:
|
||||
|
||||
void DisableResizeView(int32 disableCount = 1);
|
||||
static void AboutRequested();
|
||||
|
||||
|
||||
protected:
|
||||
virtual void AttachedToWindow();
|
||||
virtual void DetachedFromWindow();
|
||||
|
Loading…
Reference in New Issue
Block a user