Add a --fullscreen option to start fullscreened.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17588 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol
2006-05-25 13:23:47 +00:00
parent 6d27f962bd
commit 265fea4ad4
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -44,6 +44,7 @@ struct standard_args {
struct standard_args standard_args[] = {
{ "-h", "--help", 90, 0, NULL },
{ "-f", "--fullscreen", 30, 0, NULL },
{ "-p", "--preference", 80, 1, NULL },
{ "-t", "--title", 70, 1, NULL },
{ "-geom", "--geometry", 50, 1, NULL },
@@ -152,6 +153,9 @@ TermApp::ReadyToRun()
}
MakeTermWindow(fTermFrame);
// using BScreen::Frame isn't enough
if (fStartFullscreen)
BMessenger(fTermWindow).SendMessage(FULLSCREEN);
}
@@ -243,6 +247,10 @@ TermApp::ArgvReceived(int32 argc, char **argv)
PostMessage(B_QUIT_REQUESTED);
}
// Start fullscreen
if (argmatch(argv, argc, "-f", "--fullscreen", 4, NULL, &skip_args))
fStartFullscreen = true;
// Load preference file
if (argmatch(argv, argc, "-p", "--preference", 4, &value, &skip_args))
gTermPref->Open(value);
+1
View File
@@ -73,6 +73,7 @@ private:
bool IsMinimize (team_id);
int fRows, fCols, fXpos, fYpos;
bool fStartFullscreen;
BString fWindowTitle;
int fWindowNumber;
rgb_color fFg, fBg, fCurFg, fCurBg, fSelFg, fSelbg;