diff --git a/xterm/index.cgi b/xterm/index.cgi index 2f3fb15f6..affd1f77b 100644 --- a/xterm/index.cgi +++ b/xterm/index.cgi @@ -117,19 +117,22 @@ EOF # Print main container print "
\n"; -# Set column size depending on the browser window -# size unless defined in config (non-auto mode) -if (!$conf_cols_n && !$conf_rows_n) { - if ((!$rcvd_cnt_w || - !$rcvd_cnt_h) || $resize_call) { - print ""; - return; +# Detect terminal width and height for regular themes +if (!$xmlhr) { + # Set column size depending on the browser window + # size unless defined in config (non-auto mode) + if (!$conf_cols_n && !$conf_rows_n) { + if ((!$rcvd_cnt_w || + !$rcvd_cnt_h) || $resize_call) { + print ""; + return; + } } - } -# Clear URL to make sure resized and -# reloaded page will work properly -print ""; + # Clear URL to make sure resized and + # reloaded page will work properly + print ""; + } # Check for needed modules my $modname = "Net::WebSocket::Server";