hrev52853 adds 1 changeset to branch 'master'
old head: c306c63c131e502a9afb497b56e821efc3ecb077
new head: 2c218a0e8bf03618e32116c0b8a2f56dc76bb854
overview:
https://git.haiku-os.org/haiku/log/?qt=range&q=2c218a0e8bf0+%5Ec306c63c131e
----------------------------------------------------------------------------
2c218a0e8bf0: SerialConnect: increase scrollback size
1000 lines is not enough for a full boot log.
Change-Id: If1fe48349dec5cf0574de612c533b0037abc5043
Reviewed-on: https://review.haiku-os.org/c/1021
Reviewed-by: Stephan Aßmus <superstippi@xxxxxx>
[ Adrien Destugues <pulkomandy@xxxxxxxxx> ]
----------------------------------------------------------------------------
Revision: hrev52853
Commit: 2c218a0e8bf03618e32116c0b8a2f56dc76bb854
URL: https://git.haiku-os.org/haiku/commit/?id=2c218a0e8bf0
Author: Adrien Destugues <pulkomandy@xxxxxxxxx>
Date: Fri Feb 8 21:42:22 2019 UTC
Committer: Stephan Aßmus <superstippi@xxxxxx>
Commit-Date: Sun Feb 10 10:08:29 2019 UTC
----------------------------------------------------------------------------
2 files changed, 5 insertions(+), 5 deletions(-)
src/apps/serialconnect/TermView.cpp | 8 ++++----
src/apps/serialconnect/TermView.h | 2 +-
----------------------------------------------------------------------------
diff --git a/src/apps/serialconnect/TermView.cpp
b/src/apps/serialconnect/TermView.cpp
index a57f8fcb8d..646f19d18b 100644
--- a/src/apps/serialconnect/TermView.cpp
+++ b/src/apps/serialconnect/TermView.cpp
@@ -77,7 +77,7 @@ TermView::Draw(BRect updateRect)
VTermScreenCell cell;
int width = 0;
bool isCursor = false;
-
+
pos.col = updatedChars.start_col;
_GetCell(pos, cell);
@@ -99,7 +99,7 @@ TermView::Draw(BRect updateRect)
|| pos.col >= updatedChars.end_col
|| (pos.col == cursorPos.col && pos.row ==
cursorPos.row)
|| (pos.col == cursorPos.col + 1 && pos.row ==
cursorPos.row)) {
-
+
rgb_color foreground, background;
foreground.red = cell.fg.red;
foreground.green = cell.fg.green;
@@ -156,7 +156,7 @@ TermView::Draw(BRect updateRect)
isCursor = true;
else
isCursor = false;
-
+
if (newCell.chars[0] == 0) {
string += " ";
pos.col ++;
@@ -234,7 +234,7 @@ TermView::KeyDown(const char* bytes, int32 numBytes)
void
TermView::MessageReceived(BMessage* message)
{
- switch(message->what)
+ switch (message->what)
{
case 'DATA':
{
diff --git a/src/apps/serialconnect/TermView.h
b/src/apps/serialconnect/TermView.h
index c43250723f..aec5cee88a 100644
--- a/src/apps/serialconnect/TermView.h
+++ b/src/apps/serialconnect/TermView.h
@@ -65,5 +65,5 @@ class TermView: public BView
static const int kDefaultWidth = 80;
static const int kDefaultHeight = 25;
static const int kBorderSpacing = 3;
- static const int kScrollBackSize = 1000;
+ static const int kScrollBackSize = 10000;
};