aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenny Root <kenny@the-b.org>2009-01-16 21:02:43 +0000
committerKenny Root <kenny@the-b.org>2009-01-16 21:02:43 +0000
commitdadcba017646aa8fc6d19f4f03962ca0371f5a98 (patch)
treeb8f1460dd6622df61052077614d502a32561fec0
parentbfac23d58a1260f61de6c69be4e80b2d85e045ac (diff)
downloadconnectbot-dadcba017646aa8fc6d19f4f03962ca0371f5a98.tar.gz
connectbot-dadcba017646aa8fc6d19f4f03962ca0371f5a98.tar.bz2
connectbot-dadcba017646aa8fc6d19f4f03962ca0371f5a98.zip
Scroll to bottom of window on keyboard input
-rw-r--r--src/org/connectbot/service/TerminalBridge.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/connectbot/service/TerminalBridge.java b/src/org/connectbot/service/TerminalBridge.java
index 07e96f7..983d308 100644
--- a/src/org/connectbot/service/TerminalBridge.java
+++ b/src/org/connectbot/service/TerminalBridge.java
@@ -834,6 +834,10 @@ public class TerminalBridge implements VDUDisplay, OnKeyListener, InteractiveCal
if (disconnected || session == null)
return false;
+ // if we're in scrollback, scroll to bottom of window on input
+ if (buffer.windowBase != buffer.screenBase)
+ buffer.setWindowBase(buffer.screenBase);
+
boolean printing = (keymap.isPrintingKey(keyCode) || keyCode == KeyEvent.KEYCODE_SPACE);
// otherwise pass through to existing session