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:
parent
a5e61a10eb
commit
644470be68
@ -30,8 +30,9 @@ class TermBuffer;
|
|||||||
|
|
||||||
class TermView : public BView {
|
class TermView : public BView {
|
||||||
public:
|
public:
|
||||||
TermView(BRect frame, 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 = 1000);
|
TermView(int rows, int columns, int32 argc, const char **argv,
|
||||||
|
int32 historySize);
|
||||||
TermView(BMessage *archive);
|
TermView(BMessage *archive);
|
||||||
~TermView();
|
~TermView();
|
||||||
|
|
||||||
|
@ -687,10 +687,11 @@ TermWindow::_AddTab(Arguments *args)
|
|||||||
// Note: I don't pass the Arguments class directly to the termview,
|
// 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
|
// only to avoid adding it as a dependency: in other words, to keep
|
||||||
// the TermView class as agnostic as possible about the surrounding world.
|
// the TermView class as agnostic as possible about the surrounding world.
|
||||||
CustomTermView *view =
|
CustomTermView *view = new CustomTermView(
|
||||||
new CustomTermView(PrefHandler::Default()->getInt32(PREF_ROWS),
|
PrefHandler::Default()->getInt32(PREF_ROWS),
|
||||||
PrefHandler::Default()->getInt32(PREF_COLS),
|
PrefHandler::Default()->getInt32(PREF_COLS),
|
||||||
argc, (const char **)argv);
|
argc, (const char **)argv,
|
||||||
|
PrefHandler::Default()->getInt32(PREF_HISTORY_SIZE));
|
||||||
|
|
||||||
TermViewContainerView *containerView = new TermViewContainerView(view);
|
TermViewContainerView *containerView = new TermViewContainerView(view);
|
||||||
BScrollView *scrollView = new TermScrollView("scrollView",
|
BScrollView *scrollView = new TermScrollView("scrollView",
|
||||||
|
Loading…
Reference in New Issue
Block a user