2 * Copyright 2001-2013, Haiku.
3 * Copyright (c) 2003-4 Kian Duffy <myob@users.sourceforge.net>
4 * Parts Copyright (C) 1998,99 Kazuho Okui and Takashi Murai.
6 * Distributed under the terms of the MIT License.
9 * Kian Duffy, myob@users.sourceforge.net
10 * Siarzhuk Zharski, zharik@gmx.li
16 #include <Application.h>
28 class TermApp
: public BApplication
{
33 static const rgb_color
* DefaultPalette()
34 { return fDefaultPalette
; }
36 virtual void ReadyToRun();
37 virtual bool QuitRequested();
39 virtual void MessageReceived(BMessage
* message
);
40 virtual void RefsReceived(BMessage
* message
);
41 virtual void ArgvReceived(int32 argc
, char** argv
);
44 status_t
_MakeTermWindow();
46 static void _SigChildHandler(int signal
, void* data
);
47 static status_t
_ChildCleanupThreadEntry(void* data
);
48 status_t
_ChildCleanupThread();
50 void _Usage(char *name
);
51 void _InitDefaultPalette();
53 thread_id fChildCleanupThread
;
55 bool fStartFullscreen
;
60 static rgb_color fDefaultPalette
[kTermColorCount
];