Use the preferred history size. It's not settable via GUI yet, but one

can edit the settings file. The default are 10000 lines BTW.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26045 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold 2008-06-20 12:35:42 +00:00
parent a5e61a10eb
commit 644470be68
2 changed files with 8 additions and 6 deletions

View File

@ -30,8 +30,9 @@ class TermBuffer;
class TermView : public BView {
public:
TermView(BRect frame, int32 argc, const char **argv, int32 historySize = 1000);
TermView(int rows, int columns, int32 argc, const char **argv, int32 historySize = 1000);
TermView(BRect frame, int32 argc, const char **argv, int32 historySize);
TermView(int rows, int columns, int32 argc, const char **argv,
int32 historySize);
TermView(BMessage *archive);
~TermView();

View File

@ -687,10 +687,11 @@ TermWindow::_AddTab(Arguments *args)
// Note: I don't pass the Arguments class directly to the termview,
// only to avoid adding it as a dependency: in other words, to keep
// the TermView class as agnostic as possible about the surrounding world.
CustomTermView *view =
new CustomTermView(PrefHandler::Default()->getInt32(PREF_ROWS),
PrefHandler::Default()->getInt32(PREF_COLS),
argc, (const char **)argv);
CustomTermView *view = new CustomTermView(
PrefHandler::Default()->getInt32(PREF_ROWS),
PrefHandler::Default()->getInt32(PREF_COLS),
argc, (const char **)argv,
PrefHandler::Default()->getInt32(PREF_HISTORY_SIZE));
TermViewContainerView *containerView = new TermViewContainerView(view);
BScrollView *scrollView = new TermScrollView("scrollView",