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
32 lines
472 B
C++
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;
|
|
}
|