xref: /haiku/src/tests/apps/miniterminal/MiniView.h (revision 160bd2ffca5cc2603fe4f32697dc09aa44a1e5fc)
1*160bd2ffSMichael Lotz #ifndef _MINI_TERMINAL_H_
2*160bd2ffSMichael Lotz #define _MINI_TERMINAL_H_
3*160bd2ffSMichael Lotz 
4*160bd2ffSMichael Lotz #include "ViewBuffer.h"
5*160bd2ffSMichael Lotz #include "Console.h"
6*160bd2ffSMichael Lotz 
7*160bd2ffSMichael Lotz class MiniView : public ViewBuffer {
8*160bd2ffSMichael Lotz public:
9*160bd2ffSMichael Lotz 							MiniView(BRect frame);
10*160bd2ffSMichael Lotz virtual						~MiniView();
11*160bd2ffSMichael Lotz 
12*160bd2ffSMichael Lotz 		void				Start();
13*160bd2ffSMichael Lotz 		status_t			OpenTTY();
14*160bd2ffSMichael Lotz 		status_t			SpawnThreads();
15*160bd2ffSMichael Lotz virtual	void				KeyDown(const char *bytes, int32 numBytes);
16*160bd2ffSMichael Lotz 
17*160bd2ffSMichael Lotz 		Console				*fConsole;
18*160bd2ffSMichael Lotz 		int					fMasterFD;
19*160bd2ffSMichael Lotz 		int					fSlaveFD;
20*160bd2ffSMichael Lotz 		thread_id			fShellProcess;
21*160bd2ffSMichael Lotz 		thread_id			fConsoleWriter;
22*160bd2ffSMichael Lotz };
23*160bd2ffSMichael Lotz 
24*160bd2ffSMichael Lotz #endif
25