From cdd4ae34eb2c8f8c26f8f2b9002a00bbdc7b092b Mon Sep 17 00:00:00 2001 From: zodiac Date: Thu, 19 Mar 2009 22:10:48 +0000 Subject: [PATCH] Tweaked cursor positioning code, and added explicit no-cache headers to our responses. This might help with reported IE6 problems. git-svn-id: https://shellinabox.googlecode.com/svn/trunk@81 0da03de8-d603-11dd-86c2-0f8696b7b6f9 --- ChangeLog | 8 +++++++ config.h | 2 +- shellinabox/shellinaboxd.c | 1 + shellinabox/styles.css | 7 +++++- shellinabox/vt100.js | 48 +++++++++++++++++++++++++++++--------- 5 files changed, 53 insertions(+), 13 deletions(-) diff --git a/ChangeLog b/ChangeLog index 32c14af..6dfb598 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2009-03-19 Markus Gutschke + + * Fixed cursor positioning. Hopefully, more browsers will be happy + with this, now. + + * Explicitly added no-cache headers to our responses. This might help + with the IE6 problems. + 2009-03-17 Markus Gutschke * Allow root to bind to privileged port. diff --git a/config.h b/config.h index a386fe4..166e566 100644 --- a/config.h +++ b/config.h @@ -95,7 +95,7 @@ #define STDC_HEADERS 1 /* Most recent revision number in the version control system */ -#define VCS_REVISION "80" +#define VCS_REVISION "81" /* Version number of package */ #define VERSION "2.4" diff --git a/shellinabox/shellinaboxd.c b/shellinabox/shellinaboxd.c index f35234f..c51a697 100644 --- a/shellinabox/shellinaboxd.c +++ b/shellinabox/shellinaboxd.c @@ -225,6 +225,7 @@ static int completePendingRequest(struct Session *session, "Content-Type: application/json; " "charset=utf-8\r\n" "Content-Length: %ld\r\n" + "Cache-Control: no-cache\r\n" "\r\n" "%s", (long)strlen(json), diff --git a/shellinabox/styles.css b/shellinabox/styles.css index 31ae4cf..0833fb2 100644 --- a/shellinabox/styles.css +++ b/shellinabox/styles.css @@ -20,10 +20,15 @@ padding: 1px; } -#vt100 #console, #vt100 #alt_console, #vt100 #cursor { +#vt100 #console, #vt100 #alt_console, #vt100 #cursor, #vt100 #lineheight { font-family: "DejaVu Sans Mono", "Everson Mono", FreeMono, "Andale Mono", "Lucida Console", monospace; } +#vt100 #lineheight { + position: absolute; + visibility: hidden; +} + #vt100 #cursor { position: absolute; left: 0px; diff --git a/shellinabox/vt100.js b/shellinabox/vt100.js index 7e7c50d..39f63a4 100644 --- a/shellinabox/vt100.js +++ b/shellinabox/vt100.js @@ -234,11 +234,11 @@ VT100.prototype.initializeElements = function(container) { '' + '' + '
' + + '
 
' + '
' +
                          '' +
                          '
' + - '
 
' + - '
 
' + + '
X
' + '
' + '