Files
haiku-beta6/src/tests/apps/miniterminal/MiniWin.cpp
T
Ingo Weinhold 42244cf30e * Changed MiniTerminal command line arguments. Location and size are now
specified via options -l and -s. An arbitrary program can be run in the
  terminal instead of a shell.
* Console::fState was never initialized which could cause the terminal to
  not print anything.
* stdin, -out, and -err were set in MiniView::Start() and in
  MiniView::ExecuteShell(). Thus resetting them in the latter method after
  executing the shell had no effect. Removed it in the former method and
  now reset them after loading, but before resuming the shell.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13676 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-14 23:55:49 +00:00

32 lines
472 B
C++

/*
* Part of the MiniTerminal.
*
* Copyright 2005 Michael Lotz. All rights reserved.
* Distributed under the Haiku License.
*/
#include "Arguments.h"
#include "MiniView.h"
#include "MiniWin.h"
MiniWin::MiniWin(const Arguments &args)
: BWindow(args.Bounds(), "MiniTerminal", B_TITLED_WINDOW,
B_QUIT_ON_WINDOW_CLOSE)
{
fView = new MiniView(args);
AddChild(fView);
fView->MakeFocus();
}
MiniWin::~MiniWin()
{
}
MiniView *
MiniWin::View()
{
return fView;
}