diff options
author | Jeffrey Sharkey <jsharkey@jsharkey.org> | 2008-08-27 10:47:56 +0000 |
---|---|---|
committer | Jeffrey Sharkey <jsharkey@jsharkey.org> | 2008-08-27 10:47:56 +0000 |
commit | d307f712c4e5087a659917f4d4b776e2ec84d697 (patch) | |
tree | ddf75a76152085848132cd9896719e316f784e17 /lib/src/main/java/com/trilead/ssh2/Session.java | |
parent | c36f336e6f294313cdab84352b108beea4607e48 (diff) | |
download | sshlib-d307f712c4e5087a659917f4d4b776e2ec84d697.tar.gz sshlib-d307f712c4e5087a659917f4d4b776e2ec84d697.tar.bz2 sshlib-d307f712c4e5087a659917f4d4b776e2ec84d697.zip |
* moved all terminal logic into a Service backend. connections are held in place by a TerminalBridge, which keeps the connection alive and renders the screen to a
bitmap if provided. a Console creates TerminalViews for each bridge while it is active, and handles panning back/forth between them.
* volume up/down controls will change console font size
* extended trilead library to support resizePTY() command
* left/right screen gestures will pan between various open consoles
* up/down screen gestures on right-half will look through scrollback buffer
* up/down screen gestures on left-half will trigger pageup/down keys
* broke ctrl+ keyboard mapping, will need to bring back over from older code
Diffstat (limited to 'lib/src/main/java/com/trilead/ssh2/Session.java')
-rw-r--r-- | lib/src/main/java/com/trilead/ssh2/Session.java | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/src/main/java/com/trilead/ssh2/Session.java b/lib/src/main/java/com/trilead/ssh2/Session.java index 4784537..c41d837 100644 --- a/lib/src/main/java/com/trilead/ssh2/Session.java +++ b/lib/src/main/java/com/trilead/ssh2/Session.java @@ -129,6 +129,17 @@ public class Session cm.requestPTY(cn, term, term_width_characters, term_height_characters, term_width_pixels, term_height_pixels,
terminal_modes);
}
+
+ public void resizePTY(int width, int height) throws IOException {
+ synchronized (this)
+ {
+ /* The following is just a nicer error, we would catch it anyway later in the channel code */
+ if (flag_closed)
+ throw new IOException("This session is closed.");
+ }
+
+ cm.resizePTY(cn, width, height);
+ }
/**
* Request X11 forwarding for the current session.
|