SP(servHost)
}
-array set colors {client green server cyan meta red meta2 yellow}
+# roughly: lightgreen, lightblue, tomato, sand
+array set colors {
+ client "#90ee90"
+ server "#b1eaf9"
+ meta "#ed9276"
+ meta2 "#edcd76"
+}
+
array set SP {proxyPort 8080 clntPort 8080 servHost "" servPort 80}
set extract(client) {^(GET |POST |HEAD )}
${NS}::scrollbar .yscroll -orient vertical -command {.out yview}
${NS}::scrollbar .xscroll -orient horizontal -command {.out xview}
text .out -width 80 -height 43 -font $state(fixed) -background white -setgrid 1 \
- -yscrollcommand ".yscroll set" -xscrollcommand ".xscroll set" -borderwidth 1
+ -yscrollcommand ".yscroll set" -xscrollcommand ".xscroll set" -borderwidth 1
foreach t [array names colors] {
- .out tag configure $t -background $colors($t) -borderwidth 1 \
- -relief raised -lmargin1 5 -lmargin2 5
- .out tag configure time_$t -background $colors($t) -borderwidth 1 \
- -relief raised -lmargin1 5 -lmargin2 5 -font $state(fixedbold)
+ .out tag configure $t -background $colors($t) \
+ -lmargin1 5 -lmargin2 5
+ .out tag configure time_$t -background $colors($t) -font $state(fixedbold)
}
.out tag configure sockname -elide 1
.out tag configure client2 -font $state(fixedbold)