1 #ifndef _MINI_TERMINAL_H_
2 #define _MINI_TERMINAL_H_
4 #include <MessageFilter.h>
6 #include "ViewBuffer.h"
11 class MiniView
: public ViewBuffer
{
13 MiniView(const Arguments
&args
);
18 status_t
SpawnThreads();
20 virtual void FrameResized(float width
, float height
);
21 virtual void KeyDown(const char *bytes
, int32 numBytes
);
24 static int32
ConsoleWriter(void *arg
);
25 static int32
ExecuteShell(void *arg
);
26 static filter_result
MessageFilter(BMessage
*message
, BHandler
**target
, BMessageFilter
*filter
);
28 const Arguments
&fArguments
;
32 thread_id fShellExecutor
;
33 thread_id fShellProcess
;
34 thread_id fConsoleWriter
;