diff options
author | Kenny Root <kenny@the-b.org> | 2009-08-11 06:38:35 +0000 |
---|---|---|
committer | Kenny Root <kenny@the-b.org> | 2009-08-11 06:38:35 +0000 |
commit | 564143c65fd92ba9ce84b401a8cc35d29c7e2031 (patch) | |
tree | e185f3abffeca3fc2a4735f172d1fbdaea691e3f /src | |
parent | dc44bd9a710d86b2728f46be8a1f962e74c662d0 (diff) | |
download | connectbot-564143c65fd92ba9ce84b401a8cc35d29c7e2031.tar.gz connectbot-564143c65fd92ba9ce84b401a8cc35d29c7e2031.tar.bz2 connectbot-564143c65fd92ba9ce84b401a8cc35d29c7e2031.zip |
Do not store margins for DECSC
DECRC shouldn't store margins (scroll regions) when saving the cursor.
This bad behavior was messing up mutt with "menu_scroll" enabled.
Reference: http://vt100.net/docs/vt510-rm/DECSC
git-svn-id: https://connectbot.googlecode.com/svn/trunk/connectbot@385 df292f66-193f-0410-a5fc-6d59da041ff2
Diffstat (limited to 'src')
-rw-r--r-- | src/de/mud/terminal/vt320.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/de/mud/terminal/vt320.java b/src/de/mud/terminal/vt320.java index 27298a5..0fdaf16 100644 --- a/src/de/mud/terminal/vt320.java +++ b/src/de/mud/terminal/vt320.java @@ -1934,7 +1934,7 @@ public void setScreenSize(int c, int r, boolean broadcast) { debug("ESC >"); keypadmode = false; break; - case '7': /*save cursor, attributes, margins */ + case '7': /* DECSC: save cursor, attributes */ Sc = C; Sr = R; Sgl = gl; @@ -1942,19 +1942,15 @@ public void setScreenSize(int c, int r, boolean broadcast) { Sa = attributes; Sgx = new char[4]; for (int i = 0; i < 4; i++) Sgx[i] = gx[i]; - Stm = getTopMargin(); - Sbm = getBottomMargin(); if (debug > 1) debug("ESC 7"); break; - case '8': /*restore cursor, attributes, margins */ + case '8': /* DECRC: restore cursor, attributes */ C = Sc; R = Sr; gl = Sgl; gr = Sgr; for (int i = 0; i < 4; i++) gx[i] = Sgx[i]; - setTopMargin(Stm); - setBottomMargin(Sbm); attributes = Sa; if (debug > 1) debug("ESC 8"); |