Make colors and terminal type editable
authorJamie Cameron <jcameron@webmin.com>
Tue, 9 Mar 2010 20:33:29 +0000 (12:33 -0800)
committerJamie Cameron <jcameron@webmin.com>
Tue, 9 Mar 2010 20:33:29 +0000 (12:33 -0800)
ssh2/config.info
ssh2/index.cgi

index a9d8b5f..c992b8b 100644 (file)
@@ -4,3 +4,6 @@ size=Custom width x height,0
 fontsize=Font size in points,3,Default
 detach=Separate window mode,1,1-Yes,0-No
 no_test=Test SSH server?,1,0-Yes,1-No
+foreground=Text foreground color (6 hex digits),3,Default
+background=Text background color (6 hex digits),3,Default
+term=Terminal type,3,Default
index 07a952b..5233a92 100755 (executable)
@@ -64,6 +64,17 @@ else {
        if ($config{'detach'}) {
                print "<param name=sepframe value='true'>\n";
                }
+       if ($config{'foreground'}) {
+               print "<param name=Terminal.foreground ",
+                     "value='#$config{'foreground'}'>\n";
+               }
+       if ($config{'background'}) {
+               print "<param name=Terminal.background ",
+                     "value='#$config{'background'}'>\n";
+               }
+       if ($config{'term'}) {
+               print "<param name=Terminal.id value='$config{'term'}'>\n";
+               }
        print "$text{'index_nojava'} <p>\n";
        print "</applet><br>\n";