| 1 |
|
| 2 |
|
| 3 |
exec wish "$0" "$*" |
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
set Name "xSZsetup" |
| 31 |
set Version "v1.0pl04" |
| 32 |
|
| 33 |
set AttrNames [ list OFF BOLD UNDERLINE FLASH REVERSE ] |
| 34 |
set ColNames [ list BLACK RED GREEN YELLOW BLUE PURPLE CYAN WHITE ] |
| 35 |
set BgColNames [ list BLACKBG REDBG GREENBG YELLOWBG BLUEBG PURPLEBG CYANBG\ |
| 36 |
WHITEBG ] |
| 37 |
set CmdsNames [ list WARNING JOIN MSG NOTICE NETSPLIT INVITE MODE SETTING\ |
| 38 |
HELP LEAVE NOTIFY CTCP KICK DCC WHO WHOIS PUBLIC CDCC LINKS\ |
| 39 |
DCCCHAT CSCAN NICK ME OV ] |
| 40 |
set ColorNames [ list Color1 Color2 Color3 Color4 Color5 Color6 ] |
| 41 |
|
| 42 |
set MFSLoadFilterPath "~/.ScrollZ" |
| 43 |
|
| 44 |
set MFSLoadFilterPattern "*.save" |
| 45 |
set ds "/" |
| 46 |
set parent ".." |
| 47 |
|
| 48 |
set CurrCmd WARNING |
| 49 |
set CurrCmdName Warning |
| 50 |
set CurrCmdNum 1 |
| 51 |
set CurrColor Color1 |
| 52 |
set CurrAttrs(OFF) 0 |
| 53 |
set CurrAttrs(BOLD) 0 |
| 54 |
set CurrAttrs(UNDERLINE) 0 |
| 55 |
set CurrAttrs(FLASH) 0 |
| 56 |
set CurrAttrs(REVERSE) 0 |
| 57 |
# set up our own colors |
| 58 |
set Col(BLACK) Black |
| 59 |
set Col(BoldBLACK) \#545454 |
| 60 |
set Col(RED) \#B20000 |
| 61 |
set Col(BoldRED) \#FF5454 |
| 62 |
set Col(GREEN) \#00B200 |
| 63 |
set Col(BoldGREEN) \#54FF54 |
| 64 |
set Col(YELLOW) \#B25400 |
| 65 |
set Col(BoldYELLOW) \#FFFF54 |
| 66 |
set Col(BLUE) \#0000B2 |
| 67 |
set Col(BoldBLUE) \#5454FF |
| 68 |
set Col(PURPLE) \#B200B2 |
| 69 |
set Col(BoldPURPLE) \#FF54FF |
| 70 |
set Col(CYAN) \#00B2B2 |
| 71 |
set Col(BoldCYAN) \#54FFFF |
| 72 |
set Col(WHITE) \#B2B2B2 |
| 73 |
set Col(BoldWHITE) White |
| 74 |
# set up our own background colors |
| 75 |
set Col(BLACKBG) $Col(BLACK) |
| 76 |
set Col(REDBG) $Col(RED) |
| 77 |
set Col(GREENBG) $Col(GREEN) |
| 78 |
set Col(YELLOWBG) $Col(YELLOW) |
| 79 |
set Col(BLUEBG) $Col(BLUE) |
| 80 |
set Col(PURPLEBG) $Col(PURPLE) |
| 81 |
set Col(CYANBG) $Col(CYAN) |
| 82 |
set Col(WHITEBG) $Col(WHITE) |
| 83 |
|
| 84 |
set DefaultBg \#AFB1C3 |
| 85 |
|
| 86 |
proc UpdateStatus { Text } { |
| 87 |
._Status._Text config -text $Text |
| 88 |
update |
| 89 |
} |
| 90 |
|
| 91 |
proc Quit {} { |
| 92 |
|
| 93 |
destroy . |
| 94 |
} |
| 95 |
|
| 96 |
proc Default {} { |
| 97 |
InitVars |
| 98 |
RefreshColors |
| 99 |
RefreshText |
| 100 |
UpdateStatus "Default colors from ScrollZ v1.8b selected" |
| 101 |
after 5000 UpdateStatus "Ready" |
| 102 |
} |
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
proc Load {} { |
| 107 |
global CmdsNames ColorNames Name Version CmdsColors AttrNames |
| 108 |
global CurrCmd CurrColor CurrAttrs FileCheck |
| 109 |
|
| 110 |
UpdateStatus "Waiting for you to select filename..." |
| 111 |
set FileCheck 1 |
| 112 |
set FileName [ tk_SelectFiles "Select File to load from" ] |
| 113 |
if { $FileName == "" } { |
| 114 |
UpdateStatus "Ready" |
| 115 |
return |
| 116 |
} |
| 117 |
set LineNumber 0 |
| 118 |
if { ![ file exists $FileName] } { |
| 119 |
tk_dialog ._Dialog "Oops" "File $FileName doesn't exist!\ |
| 120 |
Aborting..." error 0 OK |
| 121 |
return |
| 122 |
} |
| 123 |
if { [ catch { open $FileName r } readID ] } { |
| 124 |
tk_dialog ._Dialog "Oops" "Can't read from file $FileName!\ |
| 125 |
Aborting..." error 0 OK |
| 126 |
return |
| 127 |
} |
| 128 |
UpdateStatus "Loading from $FileName" |
| 129 |
while {![eof $readID]} { |
| 130 |
gets $readID Buffer |
| 131 |
incr LineNumber |
| 132 |
if { [ string index $Buffer 0 ] == "#" } { |
| 133 |
continue |
| 134 |
} |
| 135 |
if { [ string toupper [ lindex $Buffer 0 ] ] == "COLOR" } { |
| 136 |
if { [ llength $Buffer ] != 8 } { |
| 137 |
tk_dialog ._Dialog "Oops" "Error while reading $FileName!\ |
| 138 |
Check line $LineNumber..." error 0 OK |
| 139 |
close $readID |
| 140 |
UpdateStatus "Error while loading $FileName" |
| 141 |
|
| 142 |
after 5000 UpdateStatus "Ready" |
| 143 |
return |
| 144 |
} |
| 145 |
set EventName [ string toupper [ lrange $Buffer 1 1 ] ] |
| 146 |
set Colors(Color1) [ string toupper [ lrange $Buffer 2 2 ] ] |
| 147 |
set Colors(Color2) [ string toupper [ lrange $Buffer 3 3 ] ] |
| 148 |
set Colors(Color3) [ string toupper [ lrange $Buffer 4 4 ] ] |
| 149 |
set Colors(Color4) [ string toupper [ lrange $Buffer 5 5 ] ] |
| 150 |
set Colors(Color5) [ string toupper [ lrange $Buffer 6 6 ] ] |
| 151 |
set Colors(Color6) [ string toupper [ lrange $Buffer 7 7 ] ] |
| 152 |
foreach index $CmdsNames { |
| 153 |
if { $index == $EventName } { |
| 154 |
foreach colindex $ColorNames { |
| 155 |
set CmdsColors($EventName,$colindex,Col) "" |
| 156 |
set CmdsColors($EventName,$colindex,Bg) "" |
| 157 |
foreach attrindex $AttrNames { |
| 158 |
set CmdsColors($EventName,$colindex,$attrindex) 0 |
| 159 |
} |
| 160 |
if { ! [ ParseColor $index $colindex $Colors($colindex) ] } { |
| 161 |
tk_dialog ._Dialog "Oops" "Error while parsing\ |
| 162 |
$FileName line $LineNumber! Check $colindex..."\ |
| 163 |
error 0 OK |
| 164 |
UpdateStatus "Error while from $FileName" |
| 165 |
|
| 166 |
after 5000 UpdateStatus "Ready" |
| 167 |
close $readID |
| 168 |
return |
| 169 |
} |
| 170 |
} |
| 171 |
break |
| 172 |
} |
| 173 |
} |
| 174 |
} |
| 175 |
} |
| 176 |
UpdateStatus "Load from $FileName OK" |
| 177 |
|
| 178 |
after 5000 UpdateStatus "Ready" |
| 179 |
close $readID |
| 180 |
RefreshColors |
| 181 |
RefreshText |
| 182 |
foreach index $AttrNames { |
| 183 |
set CurrAttrs($index) $CmdsColors($CurrCmd,$CurrColor,$index) |
| 184 |
} |
| 185 |
} |
| 186 |
|
| 187 |
# Parse each color string and set attribute, color and/or background color |
| 188 |
|
| 189 |
proc ParseColor { Cmd Col ColorString } { |
| 190 |
global AttrNames ColNames BgColNames CmdsColors CmdsNames ColorNames |
| 191 |
|
| 192 |
set ColorList [ split $ColorString , ] |
| 193 |
foreach colorstr $ColorList { |
| 194 |
set Found 0 |
| 195 |
foreach blah $AttrNames { |
| 196 |
if { [ string toupper $blah ] == $colorstr } { |
| 197 |
set CmdsColors($Cmd,$Col,$blah) 1 |
| 198 |
set Found 1 |
| 199 |
break |
| 200 |
} |
| 201 |
} |
| 202 |
if { ! $Found } { |
| 203 |
foreach blah $ColNames { |
| 204 |
if { $blah == $colorstr } { |
| 205 |
set CmdsColors($Cmd,$Col,Col) $blah |
| 206 |
set Found 1 |
| 207 |
break |
| 208 |
} |
| 209 |
} |
| 210 |
if { ! $Found } { |
| 211 |
foreach blah $BgColNames { |
| 212 |
if { $blah == $colorstr } { |
| 213 |
set CmdsColors($Cmd,$Col,Bg) $blah |
| 214 |
set Found 1 |
| 215 |
break |
| 216 |
} |
| 217 |
} |
| 218 |
} |
| 219 |
} |
| 220 |
} |
| 221 |
return $Found |
| 222 |
} |
| 223 |
|
| 224 |
|
| 225 |
|
| 226 |
|
| 227 |
|
| 228 |
|
| 229 |
|
| 230 |
|
| 231 |
proc tk_SelectFiles { title { startpath "" } } { |
| 232 |
global MFSLoadFilterPath MFSLoadFilterPattern MFSSelectFinish |
| 233 |
global MFSCurPattern MFSCurSelection MFSlbf MFSlbd MFSlbi ds parent |
| 234 |
global DefaultBg |
| 235 |
|
| 236 |
set MFSLoadFilterPath [ CompressSlashes $MFSLoadFilterPath ] |
| 237 |
set OldFilterPath $MFSLoadFilterPath |
| 238 |
set OldFilterPattern $MFSLoadFilterPattern |
| 239 |
if { $startpath != "" } { |
| 240 |
set MFSLoadFilterPath [ CompressSlashes $startpath ] |
| 241 |
} |
| 242 |
set MFSCurPattern [ file join $MFSLoadFilterPath $MFSLoadFilterPattern ] |
| 243 |
set MFSSelectFinish {} |
| 244 |
set MFSCurSelection "" |
| 245 |
|
| 246 |
set MFSlbf ._Selector._Top._FileList.sub.box |
| 247 |
set MFSlbd ._Selector._Top._DirList.sub.box |
| 248 |
set MFSlbi ._Selector._SelList._FileList._List |
| 249 |
|
| 250 |
toplevel ._Selector |
| 251 |
wm title ._Selector $title |
| 252 |
wm minsize ._Selector 300 200 |
| 253 |
|
| 254 |
frame ._Selector._Filter -relief raised -bd 1 -background $DefaultBg |
| 255 |
label ._Selector._Filter._Label -text "Filter:" -background $DefaultBg \ |
| 256 |
-underline 0 |
| 257 |
entry ._Selector._Filter._Filter -relief sunken -textvariable MFSCurPattern \ |
| 258 |
-background $DefaultBg |
| 259 |
pack ._Selector._Filter._Label -side left -padx 4 -pady 4 |
| 260 |
pack ._Selector._Filter._Filter -side right -padx 8 -pady 4 \ |
| 261 |
-fill x -expand true |
| 262 |
pack ._Selector._Filter -side top -fill x |
| 263 |
|
| 264 |
frame ._Selector._Top -relief groove -bd 1 -background $DefaultBg |
| 265 |
frame ._Selector._Top._DirList -background $DefaultBg |
| 266 |
frame ._Selector._Top._DirList.sub -background $DefaultBg |
| 267 |
|
| 268 |
label ._Selector._Top._DirList.label -text "Directories" \ |
| 269 |
-background $DefaultBg |
| 270 |
listbox ._Selector._Top._DirList.sub.box -relief sunken \ |
| 271 |
-xscrollcommand "._Selector._Top._DirList.sub.xsb set" \ |
| 272 |
-yscrollcommand "._Selector._Top._DirList.sub.ysb set" \ |
| 273 |
-selectmode normal -height 8 -background $DefaultBg |
| 274 |
scrollbar ._Selector._Top._DirList.sub.xsb -orient horizontal \ |
| 275 |
-command "._Selector._Top._DirList.sub.box xview" \ |
| 276 |
-background $DefaultBg |
| 277 |
scrollbar ._Selector._Top._DirList.sub.ysb \ |
| 278 |
-command "._Selector._Top._DirList.sub.box yview" \ |
| 279 |
-background $DefaultBg |
| 280 |
|
| 281 |
pack ._Selector._Top._DirList.sub.xsb -side bottom -fill x |
| 282 |
pack ._Selector._Top._DirList.sub.ysb -side right -fill y |
| 283 |
pack ._Selector._Top._DirList.sub.box -side left -expand true -fill both |
| 284 |
|
| 285 |
pack ._Selector._Top._DirList.label -side top -anchor w -padx 4 |
| 286 |
pack ._Selector._Top._DirList.sub -side bottom -expand true -fill both |
| 287 |
|
| 288 |
|
| 289 |
frame ._Selector._Top._FileList -background $DefaultBg |
| 290 |
frame ._Selector._Top._FileList.sub -background $DefaultBg |
| 291 |
|
| 292 |
label ._Selector._Top._FileList.label -text "Files" -background $DefaultBg |
| 293 |
|
| 294 |
listbox ._Selector._Top._FileList.sub.box -relief sunken \ |
| 295 |
-xscrollcommand "._Selector._Top._FileList.sub.xsb set" \ |
| 296 |
-yscrollcommand "._Selector._Top._FileList.sub.ysb set" \ |
| 297 |
-selectmode normal -height 8 -background $DefaultBg |
| 298 |
scrollbar ._Selector._Top._FileList.sub.xsb -orient horizontal \ |
| 299 |
-command "._Selector._Top._FileList.sub.box xview" \ |
| 300 |
-background $DefaultBg |
| 301 |
scrollbar ._Selector._Top._FileList.sub.ysb \ |
| 302 |
-command "._Selector._Top._FileList.sub.box yview" \ |
| 303 |
-background $DefaultBg |
| 304 |
|
| 305 |
pack ._Selector._Top._FileList.sub.xsb -side bottom -fill x |
| 306 |
pack ._Selector._Top._FileList.sub.ysb -side right -fill y |
| 307 |
pack ._Selector._Top._FileList.sub.box -side left \ |
| 308 |
-expand true -fill both |
| 309 |
|
| 310 |
pack ._Selector._Top._FileList.label -side top -anchor w -padx 4 |
| 311 |
pack ._Selector._Top._FileList.sub -side bottom \ |
| 312 |
-expand true -fill both |
| 313 |
|
| 314 |
pack ._Selector._Top._DirList -side left -expand true -fill both -padx 4 |
| 315 |
|
| 316 |
pack ._Selector._Top._FileList -side right -expand true \ |
| 317 |
-fill both -padx 4 |
| 318 |
|
| 319 |
frame ._Selector._Selection -relief groove -bd 1 -background $DefaultBg |
| 320 |
label ._Selector._Selection.lab -text "Selection" -background $DefaultBg \ |
| 321 |
-underline 0 |
| 322 |
entry ._Selector._Selection.ent -relief sunken \ |
| 323 |
-textvariable MFSCurSelection -background $DefaultBg |
| 324 |
pack ._Selector._Selection.ent -side bottom -padx 4 -fill x |
| 325 |
pack ._Selector._Selection.lab -side bottom -anchor w -padx 4 |
| 326 |
|
| 327 |
frame ._Selector._Buttons -relief raised -bd 1 -background $DefaultBg |
| 328 |
frame ._Selector._Buttons.b -background $DefaultBg |
| 329 |
|
| 330 |
button ._Selector._Buttons.b._Ok -text "Ok" -width 8 \ |
| 331 |
-background $DefaultBg -highlightthicknes 0 -underline 0 \ |
| 332 |
-command { |
| 333 |
global FIleCheck |
| 334 |
|
| 335 |
if { $FileCheck && ( ! [ file exists $MFSCurSelection ] || \ |
| 336 |
! [ file readable $MFSCurSelection ] || \ |
| 337 |
[ file isdirectory $MFSCurSelection ] ) } { |
| 338 |
tk_dialog ._Dialog { Invalid Choice } "$MFSCurSelection\ |
| 339 |
does not exist, is not readable or is a\ |
| 340 |
directory" {} 0 OK |
| 341 |
} else { |
| 342 |
set MFSSelectFinish ok |
| 343 |
} |
| 344 |
} |
| 345 |
button ._Selector._Buttons.b._Filter -text "Filter" -width 8 \ |
| 346 |
-highlightthicknes 0 -background $DefaultBg -underline 0 \ |
| 347 |
-command { |
| 348 |
set MFSCurPattern [ CanonPattern $MFSCurPattern ] |
| 349 |
MFSSelectShow 1 |
| 350 |
} |
| 351 |
button ._Selector._Buttons.b._Cancel -text "Cancel" -width 8 \ |
| 352 |
-highlightthicknes 0 -command { set MFSSelectFinish cancel } \ |
| 353 |
-background $DefaultBg -underline 0 |
| 354 |
|
| 355 |
pack ._Selector._Buttons.b._Ok \ |
| 356 |
._Selector._Buttons.b._Filter \ |
| 357 |
._Selector._Buttons.b._Cancel \ |
| 358 |
-side left -ipadx 4 -ipady 4 -padx 15 -pady 4 |
| 359 |
pack ._Selector._Buttons.b |
| 360 |
|
| 361 |
pack ._Selector._Top -side top -expand true -fill both -ipadx 8 -ipady 8 |
| 362 |
|
| 363 |
pack ._Selector._Selection -side top -fill both -ipadx 8 -ipady 4 |
| 364 |
pack ._Selector._Buttons -side bottom -fill x |
| 365 |
|
| 366 |
|
| 367 |
|
| 368 |
|
| 369 |
|
| 370 |
bind ._Selector._Filter._Filter <Return> { |
| 371 |
set MFSCurPattern [ CanonPattern $MFSCurPattern ] |
| 372 |
MFSSelectShow 1 |
| 373 |
} |
| 374 |
bind $MFSlbd <Double-Button-1> { |
| 375 |
set Selection [ lindex [ $MFSlbd curselection ] 0 ] |
| 376 |
|
| 377 |
if { $Selection != "" } { |
| 378 |
set TheFile [ $MFSlbd get $Selection ] |
| 379 |
set MFSLoadFilterPath [ CompressSlashes \ |
| 380 |
[ file join $MFSLoadFilterPath $TheFile ] ] |
| 381 |
set MFSCurPattern [ \ |
| 382 |
file join $MFSLoadFilterPath $MFSLoadFilterPattern] |
| 383 |
MFSSelectShow 1 |
| 384 |
} |
| 385 |
} |
| 386 |
bind $MFSlbd <Button-2> { |
| 387 |
set Selection [ $MFSlbd index @%x,%y ] |
| 388 |
set TheFile [ $MFSlbd get $Selection ] |
| 389 |
|
| 390 |
if { $Selection != "" } { |
| 391 |
set MFSLoadFilterPath [ CompressSlashes \ |
| 392 |
[ file join $MFSLoadFilterPath $TheFile ] ] |
| 393 |
set MFSCurPattern [ \ |
| 394 |
file join $MFSLoadFilterPath $MFSLoadFilterPattern] |
| 395 |
MFSSelectShow 1 |
| 396 |
} |
| 397 |
} |
| 398 |
bind $MFSlbd <Button-1> { |
| 399 |
set Selection [ $MFSlbd index @%x,%y ] |
| 400 |
set TheFile [ $MFSlbd get $Selection ] |
| 401 |
|
| 402 |
if { $TheFile != "" } { |
| 403 |
set MFSCurSelection [ file join $MFSLoadFilterPath $TheFile ]$ds |
| 404 |
} |
| 405 |
} |
| 406 |
bind $MFSlbf <Button-1> { |
| 407 |
set Selection [ $MFSlbf index @%x,%y ] |
| 408 |
set TheFile [ $MFSlbf get $Selection ] |
| 409 |
|
| 410 |
if { $TheFile != "" } { |
| 411 |
set MFSCurSelection [ file join $MFSLoadFilterPath $TheFile ] |
| 412 |
} |
| 413 |
} |
| 414 |
bind $MFSlbf <Double-Button-1> { |
| 415 |
set Selection [ lindex [ $MFSlbf curselection ] 0 ] |
| 416 |
|
| 417 |
if { $Selection != "" } { |
| 418 |
set TheFile [ $MFSlbf get $Selection ] |
| 419 |
set MFSCurSelection [ file join $MFSLoadFilterPath $TheFile ] |
| 420 |
set MFSSelectFinish ok |
| 421 |
} |
| 422 |
} |
| 423 |
bind $MFSlbf <Button-2> { |
| 424 |
set Selection [ $MFSlbf index @%x,%y ] |
| 425 |
set TheFile [ $MFSlbf get $Selection ] |
| 426 |
|
| 427 |
if { $Selection != "" } { |
| 428 |
set TheFile [ $MFSlbf get $Selection ] |
| 429 |
set MFSCurSelection [ file join $MFSLoadFilterPath $TheFile ] |
| 430 |
set MFSSelectFinish ok |
| 431 |
} |
| 432 |
} |
| 433 |
bind ._Selector._Selection.ent <Return> { |
| 434 |
global FIleCheck |
| 435 |
|
| 436 |
set MFSCurSelection [ CompressSlashes $MFSCurSelection ] |
| 437 |
if { $FileCheck && ( ! [ file exists $MFSCurSelection ] || \ |
| 438 |
! [ file readable $MFSCurSelection ] ) } { |
| 439 |
tk_dialog ._Dialog { Invalid Choice } "$MFSCurSelection\ |
| 440 |
does not exist or is not readable" {} 0 OK |
| 441 |
} else { |
| 442 |
set MFSSelectFinish ok |
| 443 |
} |
| 444 |
} |
| 445 |
bind ._Selector <Alt-o> { |
| 446 |
set Selection [ lindex [ $MFSlbf curselection ] 0 ] |
| 447 |
|
| 448 |
if { $Selection != "" } { |
| 449 |
set TheFile [ $MFSlbf get $Selection ] |
| 450 |
set MFSCurSelection [ file join $MFSLoadFilterPath $TheFile ] |
| 451 |
set MFSSelectFinish ok |
| 452 |
} |
| 453 |
} |
| 454 |
bind ._Selector <Return> { |
| 455 |
set Selection [ lindex [ $MFSlbf curselection ] 0 ] |
| 456 |
|
| 457 |
if { $Selection != "" } { |
| 458 |
set TheFile [ $MFSlbf get $Selection ] |
| 459 |
set MFSCurSelection [ file join $MFSLoadFilterPath $TheFile ] |
| 460 |
set MFSSelectFinish ok |
| 461 |
} |
| 462 |
} |
| 463 |
bind ._Selector <Alt-c> { |
| 464 |
set MFSSelectFinish "cancel" |
| 465 |
} |
| 466 |
bind ._Selector <Escape> { |
| 467 |
set MFSSelectFinish "cancel" |
| 468 |
} |
| 469 |
bind ._Selector <Alt-f> { |
| 470 |
focus ._Selector._Filter._Filter |
| 471 |
} |
| 472 |
bind ._Selector <Alt-s> { |
| 473 |
focus ._Selector._Selection.ent |
| 474 |
} |
| 475 |
|
| 476 |
MFSSelectShow 1 |
| 477 |
set oldFocus [ focus ] |
| 478 |
tkwait visibility ._Selector |
| 479 |
grab set ._Selector |
| 480 |
focus ._Selector |
| 481 |
tkwait variable MFSSelectFinish |
| 482 |
|
| 483 |
set FileList {} |
| 484 |
|
| 485 |
if { $MFSSelectFinish == "cancel" } { |
| 486 |
set MFSLoadFilterPath $OldFilterPath |
| 487 |
set MFSLoadFilterPattern $OldFilterPattern |
| 488 |
} else { |
| 489 |
set FileList $MFSCurSelection |
| 490 |
} |
| 491 |
|
| 492 |
destroy ._Selector |
| 493 |
focus $oldFocus |
| 494 |
return $FileList |
| 495 |
} |
| 496 |
|
| 497 |
|
| 498 |
|
| 499 |
|
| 500 |
|
| 501 |
proc CompressSlashes { Path } { |
| 502 |
global ds parent |
| 503 |
|
| 504 |
set thepath [ file split $Path ] |
| 505 |
set lastel [ expr [ llength $thepath ] - 1 ] |
| 506 |
set newpat {} |
| 507 |
set ignore 0 |
| 508 |
|
| 509 |
set element "." |
| 510 |
for { set index $lastel } { $index >= 0 } { incr index -1 } { |
| 511 |
set element [ lindex $thepath $index ] |
| 512 |
if { $element == {} } { |
| 513 |
} elseif { $element == "." } { |
| 514 |
} elseif { $element == $parent } { |
| 515 |
incr ignore |
| 516 |
} elseif { $index == 0 && [ string range $element 0 0 ] == "~" } { |
| 517 |
set hopath [ file split [ glob -nocomplain $element ] ] |
| 518 |
|
| 519 |
if { $hopath == {} } { |
| 520 |
tk_dialog ._Dialog { User does not exist } "This user does\ |
| 521 |
not exist." {} 0 OK |
| 522 |
} elseif { $ignore } { |
| 523 |
if { $ignore > [ llength $hopath ] } { |
| 524 |
set newpat [ linsert $newpat 0 {} ] |
| 525 |
} else { |
| 526 |
set holen [ llength $hopath ] |
| 527 |
set newpat [ concat [ lrange $hopath 0 \ |
| 528 |
[ expr $holen - $ignore - 1 ] ] \ |
| 529 |
$newpat ] |
| 530 |
} |
| 531 |
} else { |
| 532 |
set newpat [ concat $hopath $newpat ] |
| 533 |
} |
| 534 |
} elseif { $ignore } { |
| 535 |
incr ignore -1 |
| 536 |
} else { |
| 537 |
set newpat [ linsert $newpat 0 $element ] |
| 538 |
} |
| 539 |
} |
| 540 |
if { $element == {} } { |
| 541 |
set newpat [ linsert $newpat 0 {} ] |
| 542 |
} elseif { $element == $ds } { |
| 543 |
} elseif { $element == "." || $element == $parent } { |
| 544 |
if { $ignore } { |
| 545 |
set curdir [ file split [ pwd ] ] |
| 546 |
if { $ignore > [ llength $curdir ] } { |
| 547 |
set newpat [ linsert $newpat 0 {} ] |
| 548 |
} else { |
| 549 |
set cdlen [ llength $curdir ] |
| 550 |
set newpat [ concat [ lrange $curdir 0 \ |
| 551 |
[ expr $cdlen - $ignore - 1 ] ] \ |
| 552 |
$newpat ] |
| 553 |
} |
| 554 |
} else { |
| 555 |
set newpat [ linsert $newpat 0 "." ] |
| 556 |
} |
| 557 |
} else { |
| 558 |
set newpat [ linsert $newpat 0 "." ] |
| 559 |
} |
| 560 |
set ThePath [ eval file join $newpat ] |
| 561 |
|
| 562 |
return $ThePath |
| 563 |
} |
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
|
| 568 |
proc CanonPattern { Pattern } { |
| 569 |
global MFSLoadFilterPath MFSLoadFilterPattern ds parent |
| 570 |
|
| 571 |
set ThePath [ CompressSlashes $Pattern ] |
| 572 |
set TheDir [ file dirname $ThePath ] |
| 573 |
set TheFile [ file tail $ThePath ] |
| 574 |
|
| 575 |
|
| 576 |
|
| 577 |
if { $TheDir == {} } { |
| 578 |
set MFSLoadFilterPath "." |
| 579 |
set MFSLoadFilterPattern "*" |
| 580 |
} elseif { [ file exists $ThePath ] && [ file isdirectory $ThePath ] } { |
| 581 |
set MFSLoadFilterPath $ThePath |
| 582 |
if { $MFSLoadFilterPattern == {} } { |
| 583 |
set MFSLoadFilterPattern "*" |
| 584 |
} |
| 585 |
} else { |
| 586 |
set MFSLoadFilterPath $TheDir |
| 587 |
set MFSLoadFilterPattern $TheFile |
| 588 |
} |
| 589 |
set MFSCurPattern [ file join $MFSLoadFilterPath $MFSLoadFilterPattern ] |
| 590 |
|
| 591 |
return $MFSCurPattern |
| 592 |
} |
| 593 |
|
| 594 |
|
| 595 |
|
| 596 |
|
| 597 |
proc MFSSelectShow { havefiles } { |
| 598 |
global MFSLoadFilterPath MFSLoadFilterPattern ds parent |
| 599 |
|
| 600 |
if { $havefiles } { |
| 601 |
global MFSlbf |
| 602 |
} |
| 603 |
global MFSlbd |
| 604 |
|
| 605 |
if { $havefiles } { |
| 606 |
$MFSlbf delete 0 end |
| 607 |
} |
| 608 |
$MFSlbd delete 0 end |
| 609 |
|
| 610 |
if { ! [ file readable $MFSLoadFilterPath ] } { |
| 611 |
tk_dialog ._Dialog { File Error } "You do not have the proper\ |
| 612 |
permissions to browse this Directory: $MFSLoadFilterPath" \ |
| 613 |
{} 0 OK |
| 614 |
if { [ file pathtype $MFSLoadFilterPath ] == "absolute" } { |
| 615 |
if { [ llength [ file split $MFSLoadFilterPath ] ] > 1 } { |
| 616 |
$MFSlbd insert 0 $parent$ds |
| 617 |
} |
| 618 |
} |
| 619 |
return |
| 620 |
} |
| 621 |
|
| 622 |
|
| 623 |
|
| 624 |
if { $havefiles } { |
| 625 |
set pat [ file join $MFSLoadFilterPath $MFSLoadFilterPattern ] |
| 626 |
foreach file [ lsort [ glob -nocomplain -- $pat ] ] { |
| 627 |
set basename [ file tail $file ] |
| 628 |
|
| 629 |
if { ! [ file isdirectory $file ] } { |
| 630 |
$MFSlbf insert end $basename |
| 631 |
} |
| 632 |
} |
| 633 |
} |
| 634 |
|
| 635 |
|
| 636 |
|
| 637 |
|
| 638 |
set pat [ file join $MFSLoadFilterPath .* ] |
| 639 |
foreach file [ lsort [ glob -nocomplain -- $pat ] ] { |
| 640 |
set basename [ file tail $file ] |
| 641 |
|
| 642 |
if { $basename != "." && [ file isdirectory $file ] } { |
| 643 |
append basename / |
| 644 |
$MFSlbd insert end $basename |
| 645 |
} |
| 646 |
} |
| 647 |
set pat [ file join $MFSLoadFilterPath * ] |
| 648 |
foreach file [ lsort [ glob -nocomplain -- $pat ] ] { |
| 649 |
set basename [ file tail $file ] |
| 650 |
|
| 651 |
if { $basename != "." && [ file isdirectory $file ] } { |
| 652 |
append basename / |
| 653 |
$MFSlbd insert end $basename |
| 654 |
} |
| 655 |
} |
| 656 |
} |
| 657 |
|
| 658 |
|
| 659 |
proc Save {} { |
| 660 |
global Name Version CmdsColors CmdsNames ColorNames AttrNames FileCheck |
| 661 |
|
| 662 |
UpdateStatus "Waiting for you to select filename..." |
| 663 |
set FileCheck 0 |
| 664 |
set tempname [ tk_SelectFiles "Select File to save to" ] |
| 665 |
if { $tempname == "" } { |
| 666 |
UpdateStatus "Ready" |
| 667 |
return |
| 668 |
} |
| 669 |
set FileFlag w |
| 670 |
if { [ file exists $tempname ] } { |
| 671 |
set RetValue [ tk_dialog ._Dialog "Oops" "File $tempname already exists!\n\ |
| 672 |
What should I do?" error 0 " Append " " Overwrite " " Cancel " ] |
| 673 |
if { $RetValue == 0 } { |
| 674 |
set FileFlag a |
| 675 |
UpdateStatus "Appending to file $tempname" |
| 676 |
} elseif { $RetValue == 1 } then { |
| 677 |
set FileFlag w |
| 678 |
UpdateStatus "Overwriting file $tempname" |
| 679 |
} else { |
| 680 |
return |
| 681 |
} |
| 682 |
} |
| 683 |
if { [ catch { open $tempname $FileFlag } writeID ] } { |
| 684 |
tk_dialog ._Dialog "Oops" "Cannot write to file $tempname!\ |
| 685 |
Colors not saved." error 0 OK |
| 686 |
return |
| 687 |
} |
| 688 |
puts $writeID "# Generated by $Name $Version" |
| 689 |
foreach index $CmdsNames { |
| 690 |
puts -nonewline $writeID "COLOR $index\t" |
| 691 |
foreach colindex $ColorNames { |
| 692 |
set comma 0 |
| 693 |
foreach attrindex $AttrNames { |
| 694 |
if { $CmdsColors($index,$colindex,$attrindex) } { |
| 695 |
if { $comma } { |
| 696 |
puts -nonewline $writeID "," |
| 697 |
} |
| 698 |
set comma 1 |
| 699 |
puts -nonewline $writeID "$attrindex" |
| 700 |
} |
| 701 |
} |
| 702 |
if { $CmdsColors($index,$colindex,Col) != "" } { |
| 703 |
if { $comma } { |
| 704 |
puts -nonewline $writeID "," |
| 705 |
} |
| 706 |
set comma 1 |
| 707 |
puts -nonewline $writeID "$CmdsColors($index,$colindex,Col)" |
| 708 |
} |
| 709 |
if { $CmdsColors($index,$colindex,Bg) != "" } { |
| 710 |
if { $comma } { |
| 711 |
puts -nonewline $writeID "," |
| 712 |
} |
| 713 |
puts -nonewline $writeID "$CmdsColors($index,$colindex,Bg)" |
| 714 |
} |
| 715 |
|
| 716 |
|
| 717 |
if { $colindex != "Color6" } { |
| 718 |
puts -nonewline $writeID " " |
| 719 |
} |
| 720 |
} |
| 721 |
puts $writeID "" |
| 722 |
} |
| 723 |
close $writeID |
| 724 |
UpdateStatus "Write to $tempname OK" |
| 725 |
|
| 726 |
after 5000 UpdateStatus "Ready" |
| 727 |
} |
| 728 |
|
| 729 |
|
| 730 |
proc About {} { |
| 731 |
global AboutFinish Name Version DefaultBg Col |
| 732 |
|
| 733 |
set AboutFinish {} |
| 734 |
|
| 735 |
toplevel ._About |
| 736 |
wm title ._About "About $Name" |
| 737 |
|
| 738 |
frame ._About._Right -relief raised -bd 2 -background $DefaultBg |
| 739 |
label ._About._Right._Text1 -text "$Name $Version" \ |
| 740 |
-background $DefaultBg -foreground $Col(BoldBLUE) |
| 741 |
label ._About._Right._Text2 -text "Written by Goran Koruga (jm_ on IRC)" \ |
| 742 |
-background $DefaultBg -foreground $Col(BoldCYAN) |
| 743 |
label ._About._Right._Text3 -text "This is X version of SZSetup program\ |
| 744 |
for customizing ScrollZ colors. It was written in hope it\ |
| 745 |
might help users create more color schemes. Thanks to Frank\ |
| 746 |
Pilhofer for for letting me use his stuff." \ |
| 747 |
-wraplength 250 -background $DefaultBg -foreground Black |
| 748 |
button ._About._Right._Button -text "Ok" -command { set AboutFinish ok } \ |
| 749 |
-highlightthicknes 0 -background $DefaultBg |
| 750 |
|
| 751 |
pack ._About._Right._Button -fill both -padx 90 -pady 8 -side bottom |
| 752 |
|
| 753 |
pack ._About._Right._Text1 ._About._Right._Text2 ._About._Right._Text3 \ |
| 754 |
-fill both -padx 10 -pady 5 -side top |
| 755 |
pack ._About._Right -fill both |
| 756 |
|
| 757 |
set oldFocus [ focus ] |
| 758 |
tkwait visibility ._About |
| 759 |
grab set ._About |
| 760 |
focus ._About |
| 761 |
tkwait variable AboutFinish |
| 762 |
destroy ._About |
| 763 |
focus $oldFocus |
| 764 |
} |
| 765 |
|
| 766 |
|
| 767 |
proc InitVars { } { |
| 768 |
global NumEvents CmdsColors CmdsNames ColorNames AttrNames |
| 769 |
global CurrCmd CurrColor CurrAttrs |
| 770 |
|
| 771 |
|
| 772 |
foreach index $CmdsNames { |
| 773 |
foreach colindex $ColorNames { |
| 774 |
set CmdsColors($index,$colindex,Col) WHITE |
| 775 |
set CmdsColors($index,$colindex,Bg) "" |
| 776 |
foreach attrindex $AttrNames { |
| 777 |
set CmdsColors($index,$colindex,$attrindex) 0 |
| 778 |
} |
| 779 |
} |
| 780 |
} |
| 781 |
# set defaults from ScrollZ |
| 782 |
|
| 783 |
set CmdsColors(WARNING,Color1,BOLD) 1 |
| 784 |
set CmdsColors(WARNING,Color1,Col) RED |
| 785 |
set CmdsColors(WARNING,Color2,BOLD) 1 |
| 786 |
set CmdsColors(WARNING,Color2,Col) WHITE |
| 787 |
set CmdsColors(WARNING,Color3,BOLD) 1 |
| 788 |
set CmdsColors(WARNING,Color3,Col) YELLOW |
| 789 |
set CmdsColors(WARNING,Color4,BOLD) 1 |
| 790 |
set CmdsColors(WARNING,Color4,Col) CYAN |
| 791 |
|
| 792 |
# Join |
| 793 |
set CmdsColors(JOIN,Color1,Col) CYAN |
| 794 |
set CmdsColors(JOIN,Color2,Col) PURPLE |
| 795 |
set CmdsColors(JOIN,Color3,BOLD) 1 |
| 796 |
set CmdsColors(JOIN,Color3,Col) CYAN |
| 797 |
set CmdsColors(JOIN,Color5,BOLD) 1 |
| 798 |
set CmdsColors(JOIN,Color5,Col) CYAN |
| 799 |
set CmdsColors(JOIN,Color6,BOLD) 1 |
| 800 |
set CmdsColors(JOIN,Color6,Col) RED |
| 801 |
|
| 802 |
# Msg |
| 803 |
set CmdsColors(MSG,Color1,BOLD) 1 |
| 804 |
set CmdsColors(MSG,Color1,Col) CYAN |
| 805 |
set CmdsColors(MSG,Color2,Col) PURPLE |
| 806 |
set CmdsColors(MSG,Color4,BOLD) 1 |
| 807 |
set CmdsColors(MSG,Color4,Col) BLACK |
| 808 |
set CmdsColors(MSG,Color5,BOLD) 1 |
| 809 |
set CmdsColors(MSG,Color5,Col) CYAN |
| 810 |
set CmdsColors(MSG,Color6,Col) CYAN |
| 811 |
|
| 812 |
# Notice |
| 813 |
set CmdsColors(NOTICE,Color1,BOLD) 1 |
| 814 |
set CmdsColors(NOTICE,Color1,Col) GREEN |
| 815 |
set CmdsColors(NOTICE,Color2,Col) GREEN |
| 816 |
set CmdsColors(NOTICE,Color4,BOLD) 1 |
| 817 |
set CmdsColors(NOTICE,Color4,Col) GREEN |
| 818 |
set CmdsColors(NOTICE,Color5,BOLD) 1 |
| 819 |
set CmdsColors(NOTICE,Color5,Col) WHITE |
| 820 |
|
| 821 |
# Netsplit |
| 822 |
set CmdsColors(NETSPLIT,Color1,BOLD) 1 |
| 823 |
set CmdsColors(NETSPLIT,Color1,Col) WHITE |
| 824 |
set CmdsColors(NETSPLIT,Color4,BOLD) 1 |
| 825 |
set CmdsColors(NETSPLIT,Color4,Col) CYAN |
| 826 |
set CmdsColors(NETSPLIT,Color5,Col) CYAN |
| 827 |
set CmdsColors(NETSPLIT,Color6,BOLD) 1 |
| 828 |
set CmdsColors(NETSPLIT,Color6,Col) YELLOW |
| 829 |
|
| 830 |
# Invite |
| 831 |
set CmdsColors(INVITE,Color1,Col) CYAN |
| 832 |
set CmdsColors(INVITE,Color2,Col) PURPLE |
| 833 |
set CmdsColors(INVITE,Color3,BOLD) 1 |
| 834 |
set CmdsColors(INVITE,Color3,Col) CYAN |
| 835 |
set CmdsColors(INVITE,Color4,BOLD) 1 |
| 836 |
set CmdsColors(INVITE,Color4,Col) RED |
| 837 |
|
| 838 |
# Mode |
| 839 |
set CmdsColors(MODE,Color1,Col) CYAN |
| 840 |
set CmdsColors(MODE,Color3,BOLD) 1 |
| 841 |
set CmdsColors(MODE,Color3,Col) CYAN |
| 842 |
set CmdsColors(MODE,Color5,BOLD) 1 |
| 843 |
set CmdsColors(MODE,Color5,Col) WHITE |
| 844 |
set CmdsColors(MODE,Color6,BOLD) 1 |
| 845 |
set CmdsColors(MODE,Color6,Col) RED |
| 846 |
|
| 847 |
# Setting |
| 848 |
set CmdsColors(SETTING,Color1,BOLD) 1 |
| 849 |
set CmdsColors(SETTING,Color1,Col) WHITE |
| 850 |
set CmdsColors(SETTING,Color2,BOLD) 1 |
| 851 |
set CmdsColors(SETTING,Color2,Col) PURPLE |
| 852 |
set CmdsColors(SETTING,Color3,BOLD) 1 |
| 853 |
set CmdsColors(SETTING,Color3,Col) YELLOW |
| 854 |
set CmdsColors(SETTING,Color4,Col) PURPLE |
| 855 |
set CmdsColors(SETTING,Color5,BOLD) 1 |
| 856 |
set CmdsColors(SETTING,Color5,Col) CYAN |
| 857 |
|
| 858 |
# Help |
| 859 |
set CmdsColors(HELP,Color1,BOLD) 1 |
| 860 |
set CmdsColors(HELP,Color1,Col) CYAN |
| 861 |
set CmdsColors(HELP,Color2,BOLD) 1 |
| 862 |
set CmdsColors(HELP,Color2,Col) YELLOW |
| 863 |
set CmdsColors(HELP,Color3,Col) CYAN |
| 864 |
set CmdsColors(HELP,Color4,BOLD) 1 |
| 865 |
set CmdsColors(HELP,Color4,Col) GREEN |
| 866 |
set CmdsColors(HELP,Color5,BOLD) 1 |
| 867 |
set CmdsColors(HELP,Color5,Col) CYAN |
| 868 |
|
| 869 |
# Leave |
| 870 |
set CmdsColors(LEAVE,Color1,Col) CYAN |
| 871 |
set CmdsColors(LEAVE,Color2,BOLD) 1 |
| 872 |
set CmdsColors(LEAVE,Color2,Col) CYAN |
| 873 |
set CmdsColors(LEAVE,Color4,BOLD) 1 |
| 874 |
set CmdsColors(LEAVE,Color4,Col) CYAN |
| 875 |
set CmdsColors(LEAVE,Color5,BOLD) 1 |
| 876 |
set CmdsColors(LEAVE,Color5,Col) RED |
| 877 |
|
| 878 |
# Notify |
| 879 |
set CmdsColors(NOTIFY,Color1,Col) CYAN |
| 880 |
set CmdsColors(NOTIFY,Color2,Col) PURPLE |
| 881 |
set CmdsColors(NOTIFY,Color3,BOLD) 1 |
| 882 |
set CmdsColors(NOTIFY,Color3,Col) BLACK |
| 883 |
set CmdsColors(NOTIFY,Color4,BOLD) 1 |
| 884 |
set CmdsColors(NOTIFY,Color4,Col) WHITE |
| 885 |
set CmdsColors(NOTIFY,Color5,BOLD) 1 |
| 886 |
set CmdsColors(NOTIFY,Color5,Col) CYAN |
| 887 |
set CmdsColors(NOTIFY,Color6,BOLD) 1 |
| 888 |
set CmdsColors(NOTIFY,Color6,Col) CYAN |
| 889 |
|
| 890 |
# Ctcp |
| 891 |
set CmdsColors(CTCP,Color1,Col) CYAN |
| 892 |
set CmdsColors(CTCP,Color2,Col) PURPLE |
| 893 |
set CmdsColors(CTCP,Color3,BOLD) 1 |
| 894 |
set CmdsColors(CTCP,Color3,Col) CYAN |
| 895 |
set CmdsColors(CTCP,Color4,BOLD) 1 |
| 896 |
set CmdsColors(CTCP,Color4,Col) CYAN |
| 897 |
|
| 898 |
# Kick |
| 899 |
set CmdsColors(KICK,Color1,Col) CYAN |
| 900 |
set CmdsColors(KICK,Color2,Col) CYAN |
| 901 |
set CmdsColors(KICK,Color3,BOLD) 1 |
| 902 |
set CmdsColors(KICK,Color3,Col) CYAN |
| 903 |
set CmdsColors(KICK,Color5,BOLD) 1 |
| 904 |
set CmdsColors(KICK,Color5,Col) WHITE |
| 905 |
set CmdsColors(KICK,Color6,BOLD) 1 |
| 906 |
set CmdsColors(KICK,Color6,Col) CYAN |
| 907 |
|
| 908 |
# Dcc |
| 909 |
set CmdsColors(DCC,Color1,Col) CYAN |
| 910 |
set CmdsColors(DCC,Color2,Col) PURPLE |
| 911 |
set CmdsColors(DCC,Color3,BOLD) 1 |
| 912 |
set CmdsColors(DCC,Color3,Col) WHITE |
| 913 |
set CmdsColors(DCC,Color4,Col) CYAN |
| 914 |
set CmdsColors(DCC,Color5,BOLD) 1 |
| 915 |
set CmdsColors(DCC,Color5,Col) YELLOW |
| 916 |
set CmdsColors(DCC,Color6,BOLD) 1 |
| 917 |
set CmdsColors(DCC,Color6,Col) RED |
| 918 |
|
| 919 |
# Who |
| 920 |
set CmdsColors(WHO,Color1,Col) CYAN |
| 921 |
set CmdsColors(WHO,Color2,Col) PURPLE |
| 922 |
set CmdsColors(WHO,Color3,BOLD) 1 |
| 923 |
set CmdsColors(WHO,Color3,Col) CYAN |
| 924 |
set CmdsColors(WHO,Color5,BOLD) 1 |
| 925 |
set CmdsColors(WHO,Color5,Col) WHITE |
| 926 |
|
| 927 |
# Whois |
| 928 |
set CmdsColors(WHOIS,Color1,Col) CYAN |
| 929 |
set CmdsColors(WHOIS,Color2,Col) PURPLE |
| 930 |
set CmdsColors(WHOIS,Color3,BOLD) 1 |
| 931 |
set CmdsColors(WHOIS,Color3,Col) CYAN |
| 932 |
set CmdsColors(WHOIS,Color5,BOLD) 1 |
| 933 |
set CmdsColors(WHOIS,Color5,Col) BLUE |
| 934 |
set CmdsColors(WHOIS,Color6,BOLD) 1 |
| 935 |
set CmdsColors(WHOIS,Color6,Col) RED |
| 936 |
|
| 937 |
# Public |
| 938 |
set CmdsColors(PUBLIC,Color2,BOLD) 1 |
| 939 |
set CmdsColors(PUBLIC,Color2,Col) BLUE |
| 940 |
set CmdsColors(PUBLIC,Color3,BOLD) 1 |
| 941 |
set CmdsColors(PUBLIC,Color3,Col) CYAN |
| 942 |
set CmdsColors(PUBLIC,Color4,BOLD) 1 |
| 943 |
set CmdsColors(PUBLIC,Color4,Col) CYAN |
| 944 |
set CmdsColors(PUBLIC,Color6,Col) CYAN |
| 945 |
|
| 946 |
# Cdcc |
| 947 |
set CmdsColors(CDCC,Color1,Col) CYAN |
| 948 |
set CmdsColors(CDCC,Color2,Col) PURPLE |
| 949 |
set CmdsColors(CDCC,Color3,BOLD) 1 |
| 950 |
set CmdsColors(CDCC,Color3,Col) WHITE |
| 951 |
set CmdsColors(CDCC,Color4,BOLD) 1 |
| 952 |
set CmdsColors(CDCC,Color4,Col) YELLOW |
| 953 |
set CmdsColors(CDCC,Color5,Col) CYAN |
| 954 |
set CmdsColors(CDCC,Color6,BOLD) 1 |
| 955 |
set CmdsColors(CDCC,Color6,Col) CYAN |
| 956 |
|
| 957 |
# Links |
| 958 |
set CmdsColors(LINKS,Color1,Col) CYAN |
| 959 |
set CmdsColors(LINKS,Color2,BOLD) 1 |
| 960 |
set CmdsColors(LINKS,Color2,Col) CYAN |
| 961 |
set CmdsColors(LINKS,Color3,BOLD) 1 |
| 962 |
set CmdsColors(LINKS,Color3,Col) YELLOW |
| 963 |
set CmdsColors(LINKS,Color4,BOLD) 1 |
| 964 |
set CmdsColors(LINKS,Color4,Col) WHITE |
| 965 |
set CmdsColors(LINKS,Color5,Col) PURPLE |
| 966 |
|
| 967 |
# Dccchat |
| 968 |
set CmdsColors(DCCCHAT,Color1,BOLD) 1 |
| 969 |
set CmdsColors(DCCCHAT,Color1,Col) RED |
| 970 |
set CmdsColors(DCCCHAT,Color2,BOLD) 1 |
| 971 |
set CmdsColors(DCCCHAT,Color2,Col) WHITE |
| 972 |
set CmdsColors(DCCCHAT,Color4,BOLD) 1 |
| 973 |
set CmdsColors(DCCCHAT,Color4,Col) RED |
| 974 |
set CmdsColors(DCCCHAT,Color5,Col) RED |
| 975 |
|
| 976 |
# Cscan |
| 977 |
set CmdsColors(CSCAN,Color1,BOLD) 1 |
| 978 |
set CmdsColors(CSCAN,Color1,Col) CYAN |
| 979 |
set CmdsColors(CSCAN,Color2,BOLD) 1 |
| 980 |
set CmdsColors(CSCAN,Color2,Col) CYAN |
| 981 |
set CmdsColors(CSCAN,Color3,Col) CYAN |
| 982 |
set CmdsColors(CSCAN,Color4,Col) PURPLE |
| 983 |
set CmdsColors(CSCAN,Color6,BOLD) 1 |
| 984 |
set CmdsColors(CSCAN,Color6,Col) RED |
| 985 |
|
| 986 |
# Nick |
| 987 |
set CmdsColors(NICK,Color1,Col) CYAN |
| 988 |
set CmdsColors(NICK,Color3,Col) CYAN |
| 989 |
set CmdsColors(NICK,Color4,BOLD) 1 |
| 990 |
set CmdsColors(NICK,Color4,Col) GREEN |
| 991 |
set CmdsColors(NICK,Color5,BOLD) 1 |
| 992 |
set CmdsColors(NICK,Color5,Col) PURPLE |
| 993 |
|
| 994 |
# Me |
| 995 |
set CmdsColors(ME,Color1,BOLD) 1 |
| 996 |
set CmdsColors(ME,Color1,Col) WHITE |
| 997 |
set CmdsColors(ME,Color2,BOLD) 1 |
| 998 |
set CmdsColors(ME,Color2,Col) CYAN |
| 999 |
set CmdsColors(ME,Color3,Col) CYAN |
| 1000 |
set CmdsColors(ME,Color4,BOLD) 1 |
| 1001 |
set CmdsColors(ME,Color4,Col) CYAN |
| 1002 |
|
| 1003 |
# OV |
| 1004 |
set CmdsColors(OV,Color1,Col) CYAN |
| 1005 |
set CmdsColors(OV,Color2,Col) CYAN |
| 1006 |
set CmdsColors(OV,Color4,BOLD) 1 |
| 1007 |
set CmdsColors(OV,Color4,Col) CYAN |
| 1008 |
set CmdsColors(OV,Color6,BOLD) 1 |
| 1009 |
set CmdsColors(OV,Color6,Col) RED |
| 1010 |
|
| 1011 |
# set CurrAttrs to the ones found in default CmdsColors |
| 1012 |
foreach index $AttrNames { |
| 1013 |
set CurrAttrs($index) $CmdsColors($CurrCmd,$CurrColor,$index) |
| 1014 |
} |
| 1015 |
} |
| 1016 |
|
| 1017 |
proc ChoseColor { Color } { |
| 1018 |
global CmdsColors CurrCmd CurrColor |
| 1019 |
|
| 1020 |
set CmdsColors($CurrCmd,$CurrColor,Col) $Color |
| 1021 |
RefreshColors |
| 1022 |
RefreshText |
| 1023 |
} |
| 1024 |
|
| 1025 |
proc ChoseAttr { Attr } { |
| 1026 |
global CmdsColors CurrCmd CurrColor CurrAttrs |
| 1027 |
|
| 1028 |
set CmdsColors($CurrCmd,$CurrColor,$Attr) $CurrAttrs($Attr) |
| 1029 |
RefreshColors |
| 1030 |
RefreshText |
| 1031 |
} |
| 1032 |
|
| 1033 |
proc ChoseBgColor { BgColor } { |
| 1034 |
global CmdsColors CurrCmd CurrColor |
| 1035 |
|
| 1036 |
set CmdsColors($CurrCmd,$CurrColor,Bg) $BgColor |
| 1037 |
RefreshColors |
| 1038 |
RefreshText |
| 1039 |
} |
| 1040 |
|
| 1041 |
proc ChooseCmd { Cmd Num Name } { |
| 1042 |
global CurrCmd CurrCmdName CurrCmdNum CurrColor DefaultBg CurrAttrs |
| 1043 |
global CmdsColors AttrNames |
| 1044 |
|
| 1045 |
._MainFrame._Cmds$CurrCmdNum._$CurrCmdName config -background $DefaultBg |
| 1046 |
set CurrCmd $Cmd |
| 1047 |
set CurrCmdName $Name |
| 1048 |
set CurrCmdNum $Num |
| 1049 |
._MainFrame._Cmds$CurrCmdNum._$CurrCmdName config -background navajowhite |
| 1050 |
foreach index $AttrNames { |
| 1051 |
set CurrAttrs($index) $CmdsColors($CurrCmd,$CurrColor,$index) |
| 1052 |
} |
| 1053 |
RefreshColors |
| 1054 |
RefreshText |
| 1055 |
} |
| 1056 |
|
| 1057 |
proc ClearAllColors {} { |
| 1058 |
global CmdsColors AttrNames ColorNames CurrCmd CurrColor CurrAttrs |
| 1059 |
|
| 1060 |
foreach colindex $ColorNames { |
| 1061 |
set CmdsColors($CurrCmd,$colindex,Col) WHITE |
| 1062 |
set CmdsColors($CurrCmd,$colindex,Bg) "" |
| 1063 |
foreach index $AttrNames { |
| 1064 |
set CmdsColors($CurrCmd,$colindex,$index) 0 |
| 1065 |
set CurrAttrs($index) 0 |
| 1066 |
} |
| 1067 |
} |
| 1068 |
RefreshColors |
| 1069 |
RefreshText |
| 1070 |
} |
| 1071 |
|
| 1072 |
proc ClearColor {} { |
| 1073 |
global CmdsColors AttrNames CurrCmd CurrColor CurrAttrs |
| 1074 |
|
| 1075 |
set CmdsColors($CurrCmd,$CurrColor,Col) WHITE |
| 1076 |
set CmdsColors($CurrCmd,$CurrColor,Bg) "" |
| 1077 |
foreach index $AttrNames { |
| 1078 |
set CmdsColors($CurrCmd,$CurrColor,$index) 0 |
| 1079 |
set CurrAttrs($index) 0 |
| 1080 |
} |
| 1081 |
RefreshColors |
| 1082 |
RefreshText |
| 1083 |
} |
| 1084 |
|
| 1085 |
proc SelectColor { Color } { |
| 1086 |
global AttrNames CurrAttrs CmdsColors CurrCmd CurrColor |
| 1087 |
|
| 1088 |
foreach index $AttrNames { |
| 1089 |
set CurrAttrs($index) $CmdsColors($CurrCmd,$Color,$index) |
| 1090 |
} |
| 1091 |
} |
| 1092 |
|
| 1093 |
# redraw sample of all 6 colors |
| 1094 |
proc RefreshColors {} { |
| 1095 |
global ColorNames |
| 1096 |
|
| 1097 |
foreach index $ColorNames { |
| 1098 |
._MainFrame._Sub._Screen._Colors._$index config \ |
| 1099 |
-foreground [ FgColor $index ] -background [ BgColor $index ] |
| 1100 |
} |
| 1101 |
} |
| 1102 |
|
| 1103 |
|
| 1104 |
proc RefreshText {} { |
| 1105 |
global CurrCmd |
| 1106 |
|
| 1107 |
|
| 1108 |
foreach index [ list 1 2 3 4 5 6 7 8 9 10 11 12 ] { |
| 1109 |
foreach word [ list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ] { |
| 1110 |
._MainFrame._Sub._Screen._Text._"L$index"._"W$word" config \ |
| 1111 |
-text "" |
| 1112 |
} |
| 1113 |
} |
| 1114 |
Refresh$CurrCmd |
| 1115 |
} |
| 1116 |
|
| 1117 |
|
| 1118 |
proc RefreshWARNING {} { |
| 1119 |
global Col |
| 1120 |
|
| 1121 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1122 |
-text "Error" \ |
| 1123 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1124 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1125 |
-text "can't open file ScrollZ.save" \ |
| 1126 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1127 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1128 |
-text "Error" \ |
| 1129 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1130 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1131 |
-text "in ScrollZ.save," \ |
| 1132 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1133 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1134 |
-text "unknown command" \ |
| 1135 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1136 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1137 |
-text "," \ |
| 1138 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1139 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1140 |
-text "line 7" \ |
| 1141 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1142 |
} |
| 1143 |
|
| 1144 |
|
| 1145 |
proc RefreshJOIN {} { |
| 1146 |
global Col |
| 1147 |
|
| 1148 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1149 |
-text "Beavis" \ |
| 1150 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1151 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1152 |
-text "(" \ |
| 1153 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1154 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1155 |
-text "Beavis" \ |
| 1156 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1157 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1158 |
-text "@" \ |
| 1159 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1160 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1161 |
-text "rocks.com" \ |
| 1162 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1163 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1164 |
-text ")" \ |
| 1165 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1166 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1167 |
-text "has joined channel" \ |
| 1168 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1169 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 1170 |
-text "#butt" \ |
| 1171 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1172 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1173 |
-text "Join to" \ |
| 1174 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1175 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1176 |
-text "#butt" \ |
| 1177 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1178 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1179 |
-text "is now" \ |
| 1180 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1181 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1182 |
-text "synched" \ |
| 1183 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1184 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1185 |
-text "(0.666 seconds)" \ |
| 1186 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1187 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1188 |
-text "Color5" \ |
| 1189 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1190 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1191 |
-text "is for friends," \ |
| 1192 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1193 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1194 |
-text "Color1" \ |
| 1195 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1196 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1197 |
-text "is for normal users" \ |
| 1198 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1199 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 1200 |
-text "Color6" \ |
| 1201 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1202 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 1203 |
-text "is for shitted users" \ |
| 1204 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1205 |
} |
| 1206 |
|
| 1207 |
# redraw example for Msg |
| 1208 |
proc RefreshMSG {} { |
| 1209 |
global Col |
| 1210 |
|
| 1211 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1212 |
-text "\[" \ |
| 1213 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1214 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1215 |
-text "-" \ |
| 1216 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1217 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1218 |
-text "Beavis" \ |
| 1219 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1220 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1221 |
-text "-" \ |
| 1222 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1223 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1224 |
-text "\]" \ |
| 1225 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1226 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1227 |
-text "" \ |
| 1228 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1229 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1230 |
-text "Toilets rule" \ |
| 1231 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1232 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1233 |
-text "*" \ |
| 1234 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1235 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1236 |
-text "Beavis" \ |
| 1237 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1238 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1239 |
-text "*" \ |
| 1240 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1241 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1242 |
-text "Toilets rule" \ |
| 1243 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1244 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1245 |
-text " (" \ |
| 1246 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1247 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 1248 |
-text "Beavis" \ |
| 1249 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1250 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 1251 |
-text "@" \ |
| 1252 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1253 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 1254 |
-text "rocks.com" \ |
| 1255 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1256 |
._MainFrame._Sub._Screen._Text._"L2"._"W9" config \ |
| 1257 |
-text "\[" \ |
| 1258 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1259 |
._MainFrame._Sub._Screen._Text._"L2"._"W10" config \ |
| 1260 |
-text "12:04" \ |
| 1261 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1262 |
._MainFrame._Sub._Screen._Text._"L2"._"W11" config \ |
| 1263 |
-text "\]" \ |
| 1264 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1265 |
._MainFrame._Sub._Screen._Text._"L2"._"W12" config \ |
| 1266 |
-text ")" \ |
| 1267 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1268 |
} |
| 1269 |
|
| 1270 |
# redraw example for Notice |
| 1271 |
proc RefreshNOTICE {} { |
| 1272 |
global Col |
| 1273 |
|
| 1274 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1275 |
-text "<" \ |
| 1276 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1277 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1278 |
-text "-" \ |
| 1279 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1280 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1281 |
-text "Beavis" \ |
| 1282 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1283 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1284 |
-text "-" \ |
| 1285 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1286 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1287 |
-text ">" \ |
| 1288 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1289 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1290 |
-text "" \ |
| 1291 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1292 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1293 |
-text "I am the great Cornholio!" \ |
| 1294 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1295 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1296 |
-text "-" \ |
| 1297 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1298 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1299 |
-text "Beavis" \ |
| 1300 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1301 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1302 |
-text "-" \ |
| 1303 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1304 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1305 |
-text "" \ |
| 1306 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1307 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1308 |
-text "No way, I am the great Cornholio!" \ |
| 1309 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1310 |
} |
| 1311 |
|
| 1312 |
|
| 1313 |
proc RefreshNETSPLIT {} { |
| 1314 |
global Col |
| 1315 |
|
| 1316 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1317 |
-text "Netsplit detected" \ |
| 1318 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1319 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1320 |
-text "at" \ |
| 1321 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1322 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1323 |
-text "11:03" \ |
| 1324 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1325 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1326 |
-text ": \[" \ |
| 1327 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1328 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1329 |
-text "irc.dumb" \ |
| 1330 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1331 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1332 |
-text "" \ |
| 1333 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1334 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1335 |
-text "<-" \ |
| 1336 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1337 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 1338 |
-text "" \ |
| 1339 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1340 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 1341 |
-text "irc.cool" \ |
| 1342 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1343 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 1344 |
-text "\]" \ |
| 1345 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1346 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1347 |
-text "Logged netsplit information" \ |
| 1348 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1349 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1350 |
-text "Channel" \ |
| 1351 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1352 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1353 |
-text ":" \ |
| 1354 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1355 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1356 |
-text "Nicks" \ |
| 1357 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1358 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1359 |
-text " \[" \ |
| 1360 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1361 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 1362 |
-text "irc.dumb" \ |
| 1363 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1364 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1365 |
-text "" \ |
| 1366 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1367 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 1368 |
-text "<-" \ |
| 1369 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1370 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 1371 |
-text "" \ |
| 1372 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1373 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 1374 |
-text "irc.cool" \ |
| 1375 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1376 |
._MainFrame._Sub._Screen._Text._"L3"._"W8" config \ |
| 1377 |
-text "\] : \[" \ |
| 1378 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1379 |
._MainFrame._Sub._Screen._Text._"L3"._"W9" config \ |
| 1380 |
-text "23" \ |
| 1381 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1382 |
._MainFrame._Sub._Screen._Text._"L3"._"W10" config \ |
| 1383 |
-text "\]" \ |
| 1384 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1385 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 1386 |
-text "#butt" \ |
| 1387 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1388 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 1389 |
-text " : " \ |
| 1390 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1391 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 1392 |
-text "Beavis Butt-head" \ |
| 1393 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1394 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 1395 |
-text "End of netsplit information" \ |
| 1396 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1397 |
._MainFrame._Sub._Screen._Text._"L6"._"W1" config \ |
| 1398 |
-text "Netjoined" \ |
| 1399 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1400 |
._MainFrame._Sub._Screen._Text._"L6"._"W2" config \ |
| 1401 |
-text "at" \ |
| 1402 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1403 |
._MainFrame._Sub._Screen._Text._"L6"._"W3" config \ |
| 1404 |
-text "11:05" \ |
| 1405 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1406 |
._MainFrame._Sub._Screen._Text._"L6"._"W4" config \ |
| 1407 |
-text ": \[" \ |
| 1408 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1409 |
._MainFrame._Sub._Screen._Text._"L6"._"W5" config \ |
| 1410 |
-text "irc.dumb" \ |
| 1411 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1412 |
._MainFrame._Sub._Screen._Text._"L6"._"W6" config \ |
| 1413 |
-text "" \ |
| 1414 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1415 |
._MainFrame._Sub._Screen._Text._"L6"._"W7" config \ |
| 1416 |
-text "<-" \ |
| 1417 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1418 |
._MainFrame._Sub._Screen._Text._"L6"._"W8" config \ |
| 1419 |
-text "" \ |
| 1420 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1421 |
._MainFrame._Sub._Screen._Text._"L6"._"W9" config \ |
| 1422 |
-text "irc.cool" \ |
| 1423 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1424 |
._MainFrame._Sub._Screen._Text._"L6"._"W10" config \ |
| 1425 |
-text "\]" \ |
| 1426 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1427 |
._MainFrame._Sub._Screen._Text._"L7"._"W1" config \ |
| 1428 |
-text "Netsplit hack" \ |
| 1429 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1430 |
._MainFrame._Sub._Screen._Text._"L7"._"W2" config \ |
| 1431 |
-text "\[" \ |
| 1432 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1433 |
._MainFrame._Sub._Screen._Text._"L7"._"W3" config \ |
| 1434 |
-text "irc.cool" \ |
| 1435 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1436 |
._MainFrame._Sub._Screen._Text._"L7"._"W4" config \ |
| 1437 |
-text "\] on" \ |
| 1438 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1439 |
._MainFrame._Sub._Screen._Text._"L7"._"W5" config \ |
| 1440 |
-text "#butt" \ |
| 1441 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1442 |
._MainFrame._Sub._Screen._Text._"L7"._"W4" config \ |
| 1443 |
-text "by :" \ |
| 1444 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1445 |
._MainFrame._Sub._Screen._Text._"L7"._"W5" config \ |
| 1446 |
-text "Butt-head" \ |
| 1447 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1448 |
} |
| 1449 |
|
| 1450 |
|
| 1451 |
proc RefreshINVITE {} { |
| 1452 |
global Col |
| 1453 |
|
| 1454 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1455 |
-text "Bat" \ |
| 1456 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1457 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1458 |
-text "(" \ |
| 1459 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1460 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1461 |
-text "bat" \ |
| 1462 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1463 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1464 |
-text "@" \ |
| 1465 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1466 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1467 |
-text "leet.com" \ |
| 1468 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1469 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1470 |
-text ")" \ |
| 1471 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1472 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1473 |
-text "invites you to channel" \ |
| 1474 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1475 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 1476 |
-text "#te" \ |
| 1477 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1478 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1479 |
-text "Bat" \ |
| 1480 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1481 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1482 |
-text "(" \ |
| 1483 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1484 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1485 |
-text "bat" \ |
| 1486 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1487 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1488 |
-text "@" \ |
| 1489 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1490 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1491 |
-text "leet.com" \ |
| 1492 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1493 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 1494 |
-text ")" \ |
| 1495 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1496 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 1497 |
-text "invites you to channel" \ |
| 1498 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1499 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 1500 |
-text "#te" \ |
| 1501 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1502 |
._MainFrame._Sub._Screen._Text._"L2"._"W9" config \ |
| 1503 |
-text "-" \ |
| 1504 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1505 |
._MainFrame._Sub._Screen._Text._"L2"._"W10" config \ |
| 1506 |
-text "fake" \ |
| 1507 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1508 |
} |
| 1509 |
|
| 1510 |
|
| 1511 |
proc RefreshMODE {} { |
| 1512 |
global Col |
| 1513 |
|
| 1514 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1515 |
-text "Mode change" \ |
| 1516 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1517 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1518 |
-text "\"" \ |
| 1519 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1520 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1521 |
-text "+o Beavis" \ |
| 1522 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1523 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1524 |
-text "\" on channel" \ |
| 1525 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1526 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1527 |
-text "#butt" \ |
| 1528 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1529 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1530 |
-text "by" \ |
| 1531 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1532 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1533 |
-text "Butt-head" \ |
| 1534 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1535 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1536 |
-text "Server modes" \ |
| 1537 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1538 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1539 |
-text "\"" \ |
| 1540 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1541 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1542 |
-text "+nst" \ |
| 1543 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1544 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1545 |
-text "\" on channel" \ |
| 1546 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1547 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1548 |
-text "#butt" \ |
| 1549 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1550 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 1551 |
-text "by" \ |
| 1552 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1553 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 1554 |
-text "irc.cool" \ |
| 1555 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1556 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1557 |
-text "Fake" \ |
| 1558 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1559 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1560 |
-text "" \ |
| 1561 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1562 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1563 |
-text "Beavis" \ |
| 1564 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1565 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1566 |
-text "" \ |
| 1567 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1568 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 1569 |
-text "MODE" \ |
| 1570 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1571 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 1572 |
-text "" \ |
| 1573 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1574 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 1575 |
-text "#butt" \ |
| 1576 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1577 |
._MainFrame._Sub._Screen._Text._"L3"._"W8" config \ |
| 1578 |
-text "\"" \ |
| 1579 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1580 |
._MainFrame._Sub._Screen._Text._"L3"._"W9" config \ |
| 1581 |
-text "-o Butt-head" \ |
| 1582 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1583 |
._MainFrame._Sub._Screen._Text._"L3"._"W10" config \ |
| 1584 |
-text "\" from" \ |
| 1585 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1586 |
._MainFrame._Sub._Screen._Text._"L3"._"W11" config \ |
| 1587 |
-text "irc.cool" \ |
| 1588 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1589 |
} |
| 1590 |
|
| 1591 |
|
| 1592 |
proc RefreshSETTING {} { |
| 1593 |
global Col |
| 1594 |
|
| 1595 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1596 |
-text "Found @Beavis" \ |
| 1597 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1598 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1599 |
-text "Beavis" \ |
| 1600 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1601 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1602 |
-text "@" \ |
| 1603 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1604 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1605 |
-text "rock.com" \ |
| 1606 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1607 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1608 |
-text "with access" \ |
| 1609 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1610 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1611 |
-text "ICOAUD" \ |
| 1612 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1613 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1614 |
-text "Found @Beavis" \ |
| 1615 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1616 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1617 |
-text "Beavis" \ |
| 1618 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1619 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1620 |
-text "@" \ |
| 1621 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1622 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1623 |
-text "bites.com" \ |
| 1624 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1625 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1626 |
-text "with" \ |
| 1627 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1628 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 1629 |
-text "no access" \ |
| 1630 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1631 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1632 |
-text "#1 " \ |
| 1633 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1634 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1635 |
-text "[email protected]" \ |
| 1636 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1637 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1638 |
-text " " \ |
| 1639 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1640 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1641 |
-text "ICOAUP" \ |
| 1642 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1643 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 1644 |
-text " N " \ |
| 1645 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1646 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 1647 |
-text "#butt*" \ |
| 1648 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1649 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 1650 |
-text "#1 " \ |
| 1651 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1652 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 1653 |
-text "BKI" \ |
| 1654 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1655 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 1656 |
-text " " \ |
| 1657 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1658 |
._MainFrame._Sub._Screen._Text._"L4"._"W4" config \ |
| 1659 |
-text "BillG@Micro\$oft.com" \ |
| 1660 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1661 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 1662 |
-text " on channels " \ |
| 1663 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1664 |
._MainFrame._Sub._Screen._Text._"L5"._"W2" config \ |
| 1665 |
-text "*" \ |
| 1666 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1667 |
._MainFrame._Sub._Screen._Text._"L5"._"W3" config \ |
| 1668 |
-text ":" \ |
| 1669 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1670 |
._MainFrame._Sub._Screen._Text._"L5"._"W4" config \ |
| 1671 |
-text "Go away dork!" \ |
| 1672 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1673 |
._MainFrame._Sub._Screen._Text._"L6"._"W1" config \ |
| 1674 |
-text "Added" \ |
| 1675 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1676 |
._MainFrame._Sub._Screen._Text._"L6"._"W2" config \ |
| 1677 |
-text "[email protected]" \ |
| 1678 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1679 |
._MainFrame._Sub._Screen._Text._"L6"._"W3" config \ |
| 1680 |
-text "to your friends list" \ |
| 1681 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1682 |
._MainFrame._Sub._Screen._Text._"L7"._"W1" config \ |
| 1683 |
-text "with CTCP access of" \ |
| 1684 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1685 |
._MainFrame._Sub._Screen._Text._"L7"._"W2" config \ |
| 1686 |
-text "INVITE CHOPS OP AUTOOP UNBAN PROT" \ |
| 1687 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1688 |
._MainFrame._Sub._Screen._Text._"L8"._"W1" config \ |
| 1689 |
-text "on channels" \ |
| 1690 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1691 |
._MainFrame._Sub._Screen._Text._"L8"._"W2" config \ |
| 1692 |
-text "#butt*" \ |
| 1693 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1694 |
._MainFrame._Sub._Screen._Text._"L9"._"W1" config \ |
| 1695 |
-text "[email protected]" \ |
| 1696 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1697 |
._MainFrame._Sub._Screen._Text._"L9"._"W2" config \ |
| 1698 |
-text "removed from your friends list" \ |
| 1699 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1700 |
._MainFrame._Sub._Screen._Text._"L10"._"W1" config \ |
| 1701 |
-text "Fake modes display is" \ |
| 1702 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1703 |
._MainFrame._Sub._Screen._Text._"L10"._"W2" config \ |
| 1704 |
-text "ON" \ |
| 1705 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1706 |
._MainFrame._Sub._Screen._Text._"L10"._"W3" config \ |
| 1707 |
-text "for channels" \ |
| 1708 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1709 |
._MainFrame._Sub._Screen._Text._"L10"._"W4" config \ |
| 1710 |
-text "#butt*" \ |
| 1711 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1712 |
._MainFrame._Sub._Screen._Text._"L11"._"W1" config \ |
| 1713 |
-text "----------------=" \ |
| 1714 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1715 |
._MainFrame._Sub._Screen._Text._"L11"._"W2" config \ |
| 1716 |
-text "ScrollZ settings" \ |
| 1717 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1718 |
._MainFrame._Sub._Screen._Text._"L11"._"W3" config \ |
| 1719 |
-text "=----------------" \ |
| 1720 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1721 |
._MainFrame._Sub._Screen._Text._"L12"._"W1" config \ |
| 1722 |
-text "A-setaway time :" \ |
| 1723 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1724 |
._MainFrame._Sub._Screen._Text._"L12"._"W2" config \ |
| 1725 |
-text "10" \ |
| 1726 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1727 |
._MainFrame._Sub._Screen._Text._"L12"._"W3" config \ |
| 1728 |
-text "| A-join on invite :" \ |
| 1729 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1730 |
._MainFrame._Sub._Screen._Text._"L12"._"W4" config \ |
| 1731 |
-text "ON" \ |
| 1732 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1733 |
._MainFrame._Sub._Screen._Text._"L12"._"W5" config \ |
| 1734 |
-text "for" \ |
| 1735 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1736 |
._MainFrame._Sub._Screen._Text._"L12"._"W6" config \ |
| 1737 |
-text "#butt*" \ |
| 1738 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1739 |
} |
| 1740 |
|
| 1741 |
|
| 1742 |
proc RefreshHELP {} { |
| 1743 |
global Col |
| 1744 |
|
| 1745 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1746 |
-text "Help for command" \ |
| 1747 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1748 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1749 |
-text "URL" \ |
| 1750 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1751 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1752 |
-text "Usage" \ |
| 1753 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1754 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1755 |
-text "URL" \ |
| 1756 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1757 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1758 |
-text "\[" \ |
| 1759 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1760 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1761 |
-text "http://" \ |
| 1762 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1763 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1764 |
-text "\]" \ |
| 1765 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1766 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1767 |
-text "When you see highlighted URL, type" \ |
| 1768 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1769 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1770 |
-text "URL" \ |
| 1771 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1772 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1773 |
-text "to save it" \ |
| 1774 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1775 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 1776 |
-text "Also look at" \ |
| 1777 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1778 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 1779 |
-text "URLCATCH" \ |
| 1780 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1781 |
} |
| 1782 |
|
| 1783 |
|
| 1784 |
proc RefreshLEAVE {} { |
| 1785 |
global Col |
| 1786 |
|
| 1787 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1788 |
-text "Beavis" \ |
| 1789 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1790 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1791 |
-text "has left channel" \ |
| 1792 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1793 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1794 |
-text "#butt" \ |
| 1795 |
-foreground [ FgColor Color2 ] -background $Col(BLACK) |
| 1796 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1797 |
-text "(" \ |
| 1798 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1799 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1800 |
-text "I didn't do it" \ |
| 1801 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1802 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1803 |
-text ")" \ |
| 1804 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1805 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1806 |
-text "Signoff:" \ |
| 1807 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1808 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1809 |
-text "Beavis" \ |
| 1810 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1811 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1812 |
-text "(" \ |
| 1813 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1814 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1815 |
-text "Shut up Butt-head" \ |
| 1816 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1817 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1818 |
-text ")" \ |
| 1819 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1820 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1821 |
-text "Color4" \ |
| 1822 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1823 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1824 |
-text "is for friends," \ |
| 1825 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1826 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1827 |
-text "Color1" \ |
| 1828 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1829 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1830 |
-text "is for normal users" \ |
| 1831 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1832 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 1833 |
-text "Color5" \ |
| 1834 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1835 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 1836 |
-text "is for shitted users" \ |
| 1837 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1838 |
} |
| 1839 |
|
| 1840 |
# redraw example for Notify |
| 1841 |
proc RefreshNOTIFY {} { |
| 1842 |
global Col |
| 1843 |
|
| 1844 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1845 |
-text "Sign" \ |
| 1846 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1847 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1848 |
-text "On" \ |
| 1849 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1850 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 1851 |
-text "detected:" \ |
| 1852 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1853 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 1854 |
-text "Beavis" \ |
| 1855 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1856 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 1857 |
-text "(" \ |
| 1858 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1859 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 1860 |
-text "Beavis" \ |
| 1861 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1862 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 1863 |
-text "@" \ |
| 1864 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1865 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 1866 |
-text "rocks.com" \ |
| 1867 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1868 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 1869 |
-text ")" \ |
| 1870 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1871 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 1872 |
-text "\[" \ |
| 1873 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1874 |
._MainFrame._Sub._Screen._Text._"L1"._"W11" config \ |
| 1875 |
-text "11:39" \ |
| 1876 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1877 |
._MainFrame._Sub._Screen._Text._"L1"._"W12" config \ |
| 1878 |
-text "\]" \ |
| 1879 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1880 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 1881 |
-text "Sign" \ |
| 1882 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1883 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 1884 |
-text "Off" \ |
| 1885 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1886 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 1887 |
-text "detected:" \ |
| 1888 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1889 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 1890 |
-text "Beavis" \ |
| 1891 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1892 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 1893 |
-text "(" \ |
| 1894 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1895 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 1896 |
-text "Beavis" \ |
| 1897 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1898 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 1899 |
-text "@" \ |
| 1900 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1901 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 1902 |
-text "rocks.com" \ |
| 1903 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1904 |
._MainFrame._Sub._Screen._Text._"L2"._"W9" config \ |
| 1905 |
-text ")" \ |
| 1906 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1907 |
._MainFrame._Sub._Screen._Text._"L2"._"W10" config \ |
| 1908 |
-text "\[" \ |
| 1909 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1910 |
._MainFrame._Sub._Screen._Text._"L2"._"W11" config \ |
| 1911 |
-text "11:39" \ |
| 1912 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 1913 |
._MainFrame._Sub._Screen._Text._"L2"._"W12" config \ |
| 1914 |
-text "\]" \ |
| 1915 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1916 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 1917 |
-text "(" \ |
| 1918 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1919 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 1920 |
-text "Present" \ |
| 1921 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1922 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 1923 |
-text ")" \ |
| 1924 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1925 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 1926 |
-text "Beavis" \ |
| 1927 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1928 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 1929 |
-text " \[" \ |
| 1930 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1931 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 1932 |
-text "Beavis" \ |
| 1933 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1934 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 1935 |
-text "@" \ |
| 1936 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1937 |
._MainFrame._Sub._Screen._Text._"L3"._"W8" config \ |
| 1938 |
-text "rocks.com" \ |
| 1939 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1940 |
._MainFrame._Sub._Screen._Text._"L3"._"W9" config \ |
| 1941 |
-text "\]" \ |
| 1942 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1943 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 1944 |
-text " " \ |
| 1945 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1946 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 1947 |
-text "Butt-head" \ |
| 1948 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 1949 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 1950 |
-text " \[" \ |
| 1951 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1952 |
._MainFrame._Sub._Screen._Text._"L4"._"W4" config \ |
| 1953 |
-text "Butt-head" \ |
| 1954 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1955 |
._MainFrame._Sub._Screen._Text._"L4"._"W5" config \ |
| 1956 |
-text "@" \ |
| 1957 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1958 |
._MainFrame._Sub._Screen._Text._"L4"._"W6" config \ |
| 1959 |
-text "bites.com" \ |
| 1960 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 1961 |
._MainFrame._Sub._Screen._Text._"L4"._"W7" config \ |
| 1962 |
-text "\]" \ |
| 1963 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1964 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 1965 |
-text "(" \ |
| 1966 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1967 |
._MainFrame._Sub._Screen._Text._"L5"._"W2" config \ |
| 1968 |
-text "Absent" \ |
| 1969 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1970 |
._MainFrame._Sub._Screen._Text._"L5"._"W3" config \ |
| 1971 |
-text " )" \ |
| 1972 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 1973 |
._MainFrame._Sub._Screen._Text._"L5"._"W4" config \ |
| 1974 |
-text "Stewart Daria McVicker" \ |
| 1975 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1976 |
._MainFrame._Sub._Screen._Text._"L6"._"W1" config \ |
| 1977 |
-text "Color6" \ |
| 1978 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 1979 |
._MainFrame._Sub._Screen._Text._"L6"._"W2" config \ |
| 1980 |
-text "is for friends, " \ |
| 1981 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1982 |
._MainFrame._Sub._Screen._Text._"L6"._"W3" config \ |
| 1983 |
-text "Color1" \ |
| 1984 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 1985 |
._MainFrame._Sub._Screen._Text._"L6"._"W4" config \ |
| 1986 |
-text "is for normal users" \ |
| 1987 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 1988 |
} |
| 1989 |
|
| 1990 |
# redraw example for Ctcp |
| 1991 |
proc RefreshCTCP {} { |
| 1992 |
global Col |
| 1993 |
|
| 1994 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 1995 |
-text "CTCP PING" \ |
| 1996 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 1997 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 1998 |
-text "reply from" \ |
| 1999 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2000 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2001 |
-text "Beavis" \ |
| 2002 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2003 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2004 |
-text ": 0.078 seconds" \ |
| 2005 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2006 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2007 |
-text "CTCP VERSION" \ |
| 2008 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2009 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2010 |
-text "from" \ |
| 2011 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2012 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2013 |
-text "Beavis" \ |
| 2014 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2015 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2016 |
-text "(" \ |
| 2017 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2018 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2019 |
-text "Beavis" \ |
| 2020 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2021 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 2022 |
-text "@" \ |
| 2023 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2024 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 2025 |
-text "rocks.com" \ |
| 2026 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2027 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 2028 |
-text ")" \ |
| 2029 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2030 |
._MainFrame._Sub._Screen._Text._"L2"._"W9" config \ |
| 2031 |
-text "to" \ |
| 2032 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2033 |
._MainFrame._Sub._Screen._Text._"L2"._"W10" config \ |
| 2034 |
-text "#butt" \ |
| 2035 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2036 |
} |
| 2037 |
|
| 2038 |
|
| 2039 |
proc RefreshKICK {} { |
| 2040 |
global Col |
| 2041 |
|
| 2042 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2043 |
-text "You" \ |
| 2044 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2045 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2046 |
-text "have been" \ |
| 2047 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2048 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2049 |
-text "kicked" \ |
| 2050 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2051 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2052 |
-text "from channel" \ |
| 2053 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2054 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2055 |
-text "#te" \ |
| 2056 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2057 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2058 |
-text "by" \ |
| 2059 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2060 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 2061 |
-text "Yuk" \ |
| 2062 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2063 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 2064 |
-text "(" \ |
| 2065 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2066 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 2067 |
-text "Bye" \ |
| 2068 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2069 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 2070 |
-text ")" \ |
| 2071 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2072 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2073 |
-text "Color6" \ |
| 2074 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2075 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2076 |
-text "is for friends" \ |
| 2077 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2078 |
} |
| 2079 |
|
| 2080 |
# redraw example for Dcc |
| 2081 |
proc RefreshDCC {} { |
| 2082 |
global Col |
| 2083 |
|
| 2084 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2085 |
-text "DCC" \ |
| 2086 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2087 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2088 |
-text "" \ |
| 2089 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2090 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2091 |
-text "SEND" \ |
| 2092 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2093 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2094 |
-text "(" \ |
| 2095 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2096 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2097 |
-text "butt" \ |
| 2098 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2099 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2100 |
-text ") request from" \ |
| 2101 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2102 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 2103 |
-text "Beavis" \ |
| 2104 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2105 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 2106 |
-text "(" \ |
| 2107 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2108 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 2109 |
-text "Beavis" \ |
| 2110 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2111 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 2112 |
-text "@" \ |
| 2113 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2114 |
._MainFrame._Sub._Screen._Text._"L1"._"W11" config \ |
| 2115 |
-text "rocks.com" \ |
| 2116 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2117 |
._MainFrame._Sub._Screen._Text._"L1"._"W12" config \ |
| 2118 |
-text ")" \ |
| 2119 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2120 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2121 |
-text " " \ |
| 2122 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2123 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2124 |
-text "rejected" \ |
| 2125 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2126 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2127 |
-text "\[Port=89\]" \ |
| 2128 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2129 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 2130 |
-text "DCC" \ |
| 2131 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2132 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 2133 |
-text "" \ |
| 2134 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2135 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 2136 |
-text "SEND" \ |
| 2137 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2138 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 2139 |
-text "(" \ |
| 2140 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2141 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 2142 |
-text "butt 743" \ |
| 2143 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2144 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 2145 |
-text ") request" \ |
| 2146 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2147 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 2148 |
-text "received" \ |
| 2149 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2150 |
._MainFrame._Sub._Screen._Text._"L3"._"W8" config \ |
| 2151 |
-text "from" \ |
| 2152 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2153 |
._MainFrame._Sub._Screen._Text._"L3"._"W9" config \ |
| 2154 |
-text "Beavis" \ |
| 2155 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2156 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 2157 |
-text " (" \ |
| 2158 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2159 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 2160 |
-text "Beavis" \ |
| 2161 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2162 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 2163 |
-text "@" \ |
| 2164 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2165 |
._MainFrame._Sub._Screen._Text._"L4"._"W4" config \ |
| 2166 |
-text "rocks.com" \ |
| 2167 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2168 |
._MainFrame._Sub._Screen._Text._"L4"._"W5" config \ |
| 2169 |
-text ")" \ |
| 2170 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2171 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 2172 |
-text "Warning" \ |
| 2173 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2174 |
._MainFrame._Sub._Screen._Text._"L5"._"W2" config \ |
| 2175 |
-text "fake DCC handshake detected" \ |
| 2176 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2177 |
} |
| 2178 |
|
| 2179 |
# redraw example for Who |
| 2180 |
proc RefreshWHO {} { |
| 2181 |
global Col |
| 2182 |
|
| 2183 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2184 |
-text "#butt" \ |
| 2185 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2186 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2187 |
-text "" \ |
| 2188 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2189 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2190 |
-text "Beavis" \ |
| 2191 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2192 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2193 |
-text " " \ |
| 2194 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2195 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2196 |
-text "H@" \ |
| 2197 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2198 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2199 |
-text " " \ |
| 2200 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2201 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 2202 |
-text "Beavis" \ |
| 2203 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2204 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 2205 |
-text "@" \ |
| 2206 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2207 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 2208 |
-text "rocks.com" \ |
| 2209 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2210 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 2211 |
-text "(" \ |
| 2212 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2213 |
._MainFrame._Sub._Screen._Text._"L1"._"W11" config \ |
| 2214 |
-text "No pain no gain" \ |
| 2215 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2216 |
._MainFrame._Sub._Screen._Text._"L1"._"W12" config \ |
| 2217 |
-text ")" \ |
| 2218 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2219 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2220 |
-text "#butt" \ |
| 2221 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2222 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2223 |
-text "" \ |
| 2224 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2225 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2226 |
-text "Butt-head" \ |
| 2227 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2228 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2229 |
-text "" \ |
| 2230 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2231 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2232 |
-text "H*@" \ |
| 2233 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2234 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 2235 |
-text " " \ |
| 2236 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2237 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 2238 |
-text "Butt-head" \ |
| 2239 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2240 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 2241 |
-text "@" \ |
| 2242 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2243 |
._MainFrame._Sub._Screen._Text._"L2"._"W9" config \ |
| 2244 |
-text "bites.com" \ |
| 2245 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2246 |
._MainFrame._Sub._Screen._Text._"L2"._"W10" config \ |
| 2247 |
-text "(" \ |
| 2248 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2249 |
._MainFrame._Sub._Screen._Text._"L2"._"W11" config \ |
| 2250 |
-text "Cool" \ |
| 2251 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2252 |
._MainFrame._Sub._Screen._Text._"L2"._"W12" config \ |
| 2253 |
-text ")" \ |
| 2254 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2255 |
} |
| 2256 |
|
| 2257 |
# redraw example for Whois |
| 2258 |
proc RefreshWHOIS {} { |
| 2259 |
global Col |
| 2260 |
|
| 2261 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2262 |
-text "Beavis" \ |
| 2263 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2264 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2265 |
-text " :" \ |
| 2266 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2267 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2268 |
-text "Beavis" \ |
| 2269 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2270 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2271 |
-text "@" \ |
| 2272 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2273 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2274 |
-text "rocks.com" \ |
| 2275 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2276 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2277 |
-text "(No pain no gain)" \ |
| 2278 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2279 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2280 |
-text "Friend" \ |
| 2281 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2282 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2283 |
-text " :" \ |
| 2284 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2285 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2286 |
-text "\[Filt\]" \ |
| 2287 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2288 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2289 |
-text "Beav*@*.com" \ |
| 2290 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2291 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2292 |
-text "\[Acs\]" \ |
| 2293 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2294 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 2295 |
-text "ICV" \ |
| 2296 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2297 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 2298 |
-text "\[Chnl\]" \ |
| 2299 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2300 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 2301 |
-text "#but*" \ |
| 2302 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2303 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 2304 |
-text "Channels" \ |
| 2305 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2306 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 2307 |
-text ":" \ |
| 2308 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2309 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 2310 |
-text "#butt @#Beavis&Butt-head" \ |
| 2311 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2312 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 2313 |
-text "Server" \ |
| 2314 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2315 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 2316 |
-text " :" \ |
| 2317 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2318 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 2319 |
-text "irc.cool" \ |
| 2320 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2321 |
._MainFrame._Sub._Screen._Text._"L4"._"W4" config \ |
| 2322 |
-text " (Cool)" \ |
| 2323 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2324 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 2325 |
-text "SetAway" \ |
| 2326 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2327 |
._MainFrame._Sub._Screen._Text._"L5"._"W2" config \ |
| 2328 |
-text " :" \ |
| 2329 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2330 |
._MainFrame._Sub._Screen._Text._"L5"._"W3" config \ |
| 2331 |
-text "irc.cool" \ |
| 2332 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2333 |
._MainFrame._Sub._Screen._Text._"L5"._"W4" config \ |
| 2334 |
-text "(Beavis) Let's burn something" \ |
| 2335 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2336 |
._MainFrame._Sub._Screen._Text._"L6"._"W1" config \ |
| 2337 |
-text "IrcOp" \ |
| 2338 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2339 |
._MainFrame._Sub._Screen._Text._"L6"._"W2" config \ |
| 2340 |
-text " :" \ |
| 2341 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2342 |
._MainFrame._Sub._Screen._Text._"L6"._"W3" config \ |
| 2343 |
-text "Beavis is an IRC Operator" \ |
| 2344 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2345 |
._MainFrame._Sub._Screen._Text._"L7"._"W1" config \ |
| 2346 |
-text "SignOn" \ |
| 2347 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2348 |
._MainFrame._Sub._Screen._Text._"L7"._"W2" config \ |
| 2349 |
-text " :" \ |
| 2350 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2351 |
._MainFrame._Sub._Screen._Text._"L7"._"W3" config \ |
| 2352 |
-text "Sep 8 18:52:49" \ |
| 2353 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2354 |
._MainFrame._Sub._Screen._Text._"L7"._"W4" config \ |
| 2355 |
-text " " \ |
| 2356 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2357 |
._MainFrame._Sub._Screen._Text._"L7"._"W5" config \ |
| 2358 |
-text "Idle" \ |
| 2359 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2360 |
._MainFrame._Sub._Screen._Text._"L7"._"W6" config \ |
| 2361 |
-text ":" \ |
| 2362 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2363 |
._MainFrame._Sub._Screen._Text._"L7"._"W7" config \ |
| 2364 |
-text "163s (2 minutes)" \ |
| 2365 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2366 |
} |
| 2367 |
|
| 2368 |
# redraw example for Public |
| 2369 |
proc RefreshPUBLIC {} { |
| 2370 |
global Col |
| 2371 |
|
| 2372 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2373 |
-text "<" \ |
| 2374 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2375 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2376 |
-text "Beavis" \ |
| 2377 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2378 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2379 |
-text ">" \ |
| 2380 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2381 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2382 |
-text "" \ |
| 2383 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2384 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2385 |
-text "That was cool" \ |
| 2386 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2387 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2388 |
-text "<" \ |
| 2389 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2390 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2391 |
-text "Butt-head" \ |
| 2392 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2393 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2394 |
-text ">" \ |
| 2395 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2396 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2397 |
-text "" \ |
| 2398 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2399 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2400 |
-text "Hey Beavis check this out" \ |
| 2401 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2402 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 2403 |
-text "<" \ |
| 2404 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2405 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 2406 |
-text "Beavis" \ |
| 2407 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2408 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 2409 |
-text ":" \ |
| 2410 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2411 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 2412 |
-text "#butt" \ |
| 2413 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2414 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 2415 |
-text ">" \ |
| 2416 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2417 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 2418 |
-text "" \ |
| 2419 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2420 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 2421 |
-text "Let's burn something" \ |
| 2422 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2423 |
} |
| 2424 |
|
| 2425 |
|
| 2426 |
proc RefreshCDCC {} { |
| 2427 |
global Col |
| 2428 |
|
| 2429 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2430 |
-text "Cdcc" \ |
| 2431 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2432 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2433 |
-text "" \ |
| 2434 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2435 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2436 |
-text "created new pack" \ |
| 2437 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2438 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2439 |
-text " : \[" \ |
| 2440 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2441 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2442 |
-text "17.69 kb/3 files" \ |
| 2443 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2444 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2445 |
-text "\]" \ |
| 2446 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2447 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2448 |
-text "Cdcc" \ |
| 2449 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2450 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2451 |
-text "" \ |
| 2452 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2453 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2454 |
-text "sending" \ |
| 2455 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2456 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2457 |
-text "" \ |
| 2458 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2459 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2460 |
-text "Beavis" \ |
| 2461 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2462 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 2463 |
-text " : \[" \ |
| 2464 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2465 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 2466 |
-text "17.69 kb/3 files" \ |
| 2467 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2468 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 2469 |
-text "\]" \ |
| 2470 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2471 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 2472 |
-text "Cdcc" \ |
| 2473 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2474 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 2475 |
-text "" \ |
| 2476 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2477 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 2478 |
-text "list" \ |
| 2479 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2480 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 2481 |
-text "request received from" \ |
| 2482 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2483 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 2484 |
-text "Beavis" \ |
| 2485 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2486 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 2487 |
-text "(" \ |
| 2488 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2489 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 2490 |
-text "Beavis" \ |
| 2491 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2492 |
._MainFrame._Sub._Screen._Text._"L3"._"W8" config \ |
| 2493 |
-text "@" \ |
| 2494 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2495 |
._MainFrame._Sub._Screen._Text._"L3"._"W9" config \ |
| 2496 |
-text "rocks.com" \ |
| 2497 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2498 |
._MainFrame._Sub._Screen._Text._"L3"._"W10" config \ |
| 2499 |
-text ")" \ |
| 2500 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2501 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 2502 |
-text " to" \ |
| 2503 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2504 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 2505 |
-text "#butt" \ |
| 2506 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2507 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 2508 |
-text "Cdcc" \ |
| 2509 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2510 |
._MainFrame._Sub._Screen._Text._"L5"._"W2" config \ |
| 2511 |
-text "" \ |
| 2512 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2513 |
._MainFrame._Sub._Screen._Text._"L5"._"W3" config \ |
| 2514 |
-text "SEND" \ |
| 2515 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2516 |
._MainFrame._Sub._Screen._Text._"L5"._"W4" config \ |
| 2517 |
-text "to" \ |
| 2518 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2519 |
._MainFrame._Sub._Screen._Text._"L5"._"W5" config \ |
| 2520 |
-text "Beavis" \ |
| 2521 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2522 |
._MainFrame._Sub._Screen._Text._"L5"._"W6" config \ |
| 2523 |
-text "added to queue at position" \ |
| 2524 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2525 |
._MainFrame._Sub._Screen._Text._"L5"._"W7" config \ |
| 2526 |
-text "5" \ |
| 2527 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2528 |
} |
| 2529 |
|
| 2530 |
|
| 2531 |
proc RefreshLINKS {} { |
| 2532 |
global Col |
| 2533 |
|
| 2534 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2535 |
-text "." \ |
| 2536 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2537 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2538 |
-text "-" \ |
| 2539 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2540 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2541 |
-text "No" \ |
| 2542 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2543 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2544 |
-text "-" \ |
| 2545 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2546 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2547 |
-text ". .---" \ |
| 2548 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2549 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2550 |
-text "-" \ |
| 2551 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2552 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 2553 |
-text "Server" \ |
| 2554 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2555 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 2556 |
-text "-" \ |
| 2557 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2558 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 2559 |
-text "---. ." \ |
| 2560 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2561 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 2562 |
-text "-" \ |
| 2563 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2564 |
._MainFrame._Sub._Screen._Text._"L1"._"W11" config \ |
| 2565 |
-text "Ds" \ |
| 2566 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2567 |
._MainFrame._Sub._Screen._Text._"L1"._"W12" config \ |
| 2568 |
-text "-" \ |
| 2569 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2570 |
._MainFrame._Sub._Screen._Text._"L1"._"W13" config \ |
| 2571 |
-text ". .---" \ |
| 2572 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2573 |
._MainFrame._Sub._Screen._Text._"L1"._"W14" config \ |
| 2574 |
-text "-" \ |
| 2575 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2576 |
._MainFrame._Sub._Screen._Text._"L1"._"W15" config \ |
| 2577 |
-text "Uplink" \ |
| 2578 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2579 |
._MainFrame._Sub._Screen._Text._"L1"._"W16" config \ |
| 2580 |
-text "-" \ |
| 2581 |
-foreground $Col(BoldWHITE) -background $Col(BLACK) |
| 2582 |
._MainFrame._Sub._Screen._Text._"L1"._"W17" config \ |
| 2583 |
-text "---." \ |
| 2584 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2585 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2586 |
-text "|" \ |
| 2587 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2588 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2589 |
-text " 1 " \ |
| 2590 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2591 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2592 |
-text "" \ |
| 2593 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2594 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2595 |
-text "|" \ |
| 2596 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2597 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2598 |
-text "|" \ |
| 2599 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2600 |
._MainFrame._Sub._Screen._Text._"L2"._"W6" config \ |
| 2601 |
-text " irc.cool" \ |
| 2602 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2603 |
._MainFrame._Sub._Screen._Text._"L2"._"W7" config \ |
| 2604 |
-text "" \ |
| 2605 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2606 |
._MainFrame._Sub._Screen._Text._"L2"._"W8" config \ |
| 2607 |
-text "|" \ |
| 2608 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2609 |
._MainFrame._Sub._Screen._Text._"L2"._"W9" config \ |
| 2610 |
-text "|" \ |
| 2611 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2612 |
._MainFrame._Sub._Screen._Text._"L2"._"W10" config \ |
| 2613 |
-text " 0 " \ |
| 2614 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2615 |
._MainFrame._Sub._Screen._Text._"L2"._"W11" config \ |
| 2616 |
-text "" \ |
| 2617 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2618 |
._MainFrame._Sub._Screen._Text._"L2"._"W12" config \ |
| 2619 |
-text "| >" \ |
| 2620 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2621 |
._MainFrame._Sub._Screen._Text._"L2"._"W13" config \ |
| 2622 |
-text "|" \ |
| 2623 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2624 |
._MainFrame._Sub._Screen._Text._"L2"._"W14" config \ |
| 2625 |
-text " irc.dumb" \ |
| 2626 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2627 |
._MainFrame._Sub._Screen._Text._"L2"._"W16" config \ |
| 2628 |
-text "|" \ |
| 2629 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2630 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 2631 |
-text "|" \ |
| 2632 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2633 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 2634 |
-text " 2 " \ |
| 2635 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2636 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 2637 |
-text "" \ |
| 2638 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2639 |
._MainFrame._Sub._Screen._Text._"L3"._"W4" config \ |
| 2640 |
-text "|" \ |
| 2641 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2642 |
._MainFrame._Sub._Screen._Text._"L3"._"W5" config \ |
| 2643 |
-text "|" \ |
| 2644 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2645 |
._MainFrame._Sub._Screen._Text._"L3"._"W6" config \ |
| 2646 |
-text " irc.global.net" \ |
| 2647 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2648 |
._MainFrame._Sub._Screen._Text._"L3"._"W7" config \ |
| 2649 |
-text "" \ |
| 2650 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2651 |
._MainFrame._Sub._Screen._Text._"L3"._"W8" config \ |
| 2652 |
-text "|" \ |
| 2653 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2654 |
._MainFrame._Sub._Screen._Text._"L3"._"W9" config \ |
| 2655 |
-text "|" \ |
| 2656 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2657 |
._MainFrame._Sub._Screen._Text._"L3"._"W10" config \ |
| 2658 |
-text " 1 " \ |
| 2659 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2660 |
._MainFrame._Sub._Screen._Text._"L3"._"W11" config \ |
| 2661 |
-text "" \ |
| 2662 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2663 |
._MainFrame._Sub._Screen._Text._"L3"._"W12" config \ |
| 2664 |
-text "| >" \ |
| 2665 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2666 |
._MainFrame._Sub._Screen._Text._"L3"._"W13" config \ |
| 2667 |
-text "|" \ |
| 2668 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2669 |
._MainFrame._Sub._Screen._Text._"L3"._"W14" config \ |
| 2670 |
-text " irc.bgx.com" \ |
| 2671 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2672 |
._MainFrame._Sub._Screen._Text._"L3"._"W16" config \ |
| 2673 |
-text "|" \ |
| 2674 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2675 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 2676 |
-text "`-------'" \ |
| 2677 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2678 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 2679 |
-text "" \ |
| 2680 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2681 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 2682 |
-text "`-----------------'" \ |
| 2683 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2684 |
._MainFrame._Sub._Screen._Text._"L4"._"W4" config \ |
| 2685 |
-text "`-------'" \ |
| 2686 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2687 |
._MainFrame._Sub._Screen._Text._"L4"._"W5" config \ |
| 2688 |
-text " " \ |
| 2689 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2690 |
._MainFrame._Sub._Screen._Text._"L4"._"W6" config \ |
| 2691 |
-text "`-----------------'" \ |
| 2692 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2693 |
} |
| 2694 |
|
| 2695 |
# redraw example for Dccchat |
| 2696 |
proc RefreshDCCCHAT {} { |
| 2697 |
global Col |
| 2698 |
|
| 2699 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2700 |
-text "\[" \ |
| 2701 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2702 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2703 |
-text "=" \ |
| 2704 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2705 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2706 |
-text "Beavis" \ |
| 2707 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2708 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2709 |
-text "=" \ |
| 2710 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2711 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2712 |
-text "\]" \ |
| 2713 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2714 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2715 |
-text "" \ |
| 2716 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2717 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 2718 |
-text "Settle down Beavis" \ |
| 2719 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2720 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2721 |
-text "=" \ |
| 2722 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2723 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2724 |
-text "Beavis" \ |
| 2725 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2726 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2727 |
-text "=" \ |
| 2728 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2729 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2730 |
-text "No pain no gain" \ |
| 2731 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2732 |
} |
| 2733 |
|
| 2734 |
# redraw example for Cscan |
| 2735 |
proc RefreshCSCAN {} { |
| 2736 |
global Col |
| 2737 |
|
| 2738 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2739 |
-text "Users on" \ |
| 2740 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2741 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2742 |
-text "#butt" \ |
| 2743 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2744 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2745 |
-text "are : @" \ |
| 2746 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2747 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2748 |
-text "Butt-head" \ |
| 2749 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2750 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2751 |
-text " @" \ |
| 2752 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2753 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2754 |
-text "Beavis" \ |
| 2755 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2756 |
._MainFrame._Sub._Screen._Text._"L1"._"W7" config \ |
| 2757 |
-text " +" \ |
| 2758 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2759 |
._MainFrame._Sub._Screen._Text._"L1"._"W8" config \ |
| 2760 |
-text "Tod" \ |
| 2761 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2762 |
._MainFrame._Sub._Screen._Text._"L1"._"W9" config \ |
| 2763 |
-text " " \ |
| 2764 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2765 |
._MainFrame._Sub._Screen._Text._"L1"._"W10" config \ |
| 2766 |
-text "Stewart" \ |
| 2767 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2768 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2769 |
-text "Found @" \ |
| 2770 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2771 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2772 |
-text "Butt-head" \ |
| 2773 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2774 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2775 |
-text "[email protected] with access ICOAUP" \ |
| 2776 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2777 |
._MainFrame._Sub._Screen._Text._"L3"._"W1" config \ |
| 2778 |
-text "Found @" \ |
| 2779 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2780 |
._MainFrame._Sub._Screen._Text._"L3"._"W2" config \ |
| 2781 |
-text "Beavis" \ |
| 2782 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2783 |
._MainFrame._Sub._Screen._Text._"L3"._"W3" config \ |
| 2784 |
-text "[email protected] with no access" \ |
| 2785 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2786 |
._MainFrame._Sub._Screen._Text._"L4"._"W1" config \ |
| 2787 |
-text "Found +" \ |
| 2788 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2789 |
._MainFrame._Sub._Screen._Text._"L4"._"W2" config \ |
| 2790 |
-text "Tod" \ |
| 2791 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2792 |
._MainFrame._Sub._Screen._Text._"L4"._"W3" config \ |
| 2793 |
-text "[email protected] with no access" \ |
| 2794 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2795 |
._MainFrame._Sub._Screen._Text._"L5"._"W1" config \ |
| 2796 |
-text "Found " \ |
| 2797 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2798 |
._MainFrame._Sub._Screen._Text._"L5"._"W2" config \ |
| 2799 |
-text "Stewart" \ |
| 2800 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2801 |
._MainFrame._Sub._Screen._Text._"L5"._"W3" config \ |
| 2802 |
-text "[email protected] with no access" \ |
| 2803 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2804 |
._MainFrame._Sub._Screen._Text._"L6"._"W1" config \ |
| 2805 |
-text "Color6" \ |
| 2806 |
-foreground [ FgColor Color6 ] -background [ BgColor Color6 ] |
| 2807 |
._MainFrame._Sub._Screen._Text._"L6"._"W2" config \ |
| 2808 |
-text "is for shitted people" \ |
| 2809 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2810 |
} |
| 2811 |
|
| 2812 |
# redraw example for Nick |
| 2813 |
proc RefreshNICK {} { |
| 2814 |
global Col |
| 2815 |
|
| 2816 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2817 |
-text "Butt-head" \ |
| 2818 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2819 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2820 |
-text "is now" \ |
| 2821 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2822 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2823 |
-text "known" \ |
| 2824 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2825 |
._MainFrame._Sub._Screen._Text._"L1"._"W4" config \ |
| 2826 |
-text "as" \ |
| 2827 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2828 |
._MainFrame._Sub._Screen._Text._"L1"._"W5" config \ |
| 2829 |
-text "Butt-cool" \ |
| 2830 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2831 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2832 |
-text "Users on #butt are :" \ |
| 2833 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2834 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2835 |
-text "@" \ |
| 2836 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2837 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2838 |
-text "Butt-head" \ |
| 2839 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2840 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2841 |
-text "+" \ |
| 2842 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2843 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2844 |
-text "Beavis" \ |
| 2845 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2846 |
} |
| 2847 |
|
| 2848 |
# redraw example for Me |
| 2849 |
proc RefreshME {} { |
| 2850 |
global Col |
| 2851 |
|
| 2852 |
._MainFrame._Sub._Screen._Text._"L1"._"W1" config \ |
| 2853 |
-text "*" \ |
| 2854 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2855 |
._MainFrame._Sub._Screen._Text._"L1"._"W2" config \ |
| 2856 |
-text "Beavis" \ |
| 2857 |
-foreground [ FgColor Color3 ] -background [ BgColor Color3 ] |
| 2858 |
._MainFrame._Sub._Screen._Text._"L1"._"W3" config \ |
| 2859 |
-text "rulez the world" \ |
| 2860 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2861 |
._MainFrame._Sub._Screen._Text._"L2"._"W1" config \ |
| 2862 |
-text "<" \ |
| 2863 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2864 |
._MainFrame._Sub._Screen._Text._"L2"._"W2" config \ |
| 2865 |
-text "#butt" \ |
| 2866 |
-foreground [ FgColor Color4 ] -background [ BgColor Color4 ] |
| 2867 |
._MainFrame._Sub._Screen._Text._"L2"._"W3" config \ |
| 2868 |
-text ">" \ |
| 2869 |
-foreground $Col(WHITE) -background $Col(BLACK) |
| 2870 |
._MainFrame._Sub._Screen._Text._"L2"._"W4" config \ |
| 2871 |
-text "*" \ |
| 2872 |
-foreground [ FgColor Color1 ] -background [ BgColor Color1 ] |
| 2873 |
._MainFrame._Sub._Screen._Text._"L2"._"W5" config \ |
| 2874 |
-text "Butt-head" \ |
| 2875 |
-foreground [ FgColor Color2 ] -background [ BgColor Color2 ] |
| 2876 |
._MainFrame._Sub._Screen._Text._"L1"._"W6" config \ |
| 2877 |
-text "has lots of chicks" \ |
| 2878 |
-foreground [ FgColor Color5 ] -background [ BgColor Color5 ] |
| 2879 |
} |
| 2880 |
|
| 2881 |
# redraw example for OV |
| 2882 |
proc RefreshOV {} { |
| 2883 |
global Col |
| 2884 |
} |
| 2885 |
|
| 2886 |
# return appropriate foreground according to colors found in variable |
| 2887 |
proc FgColor { Color } { |
| 2888 |
global CmdsColors Col CurrCmd |
| 2889 |
|
| 2890 |
if { $CmdsColors($CurrCmd,$Color,Col) != "" } { |
| 2891 |
if { $CmdsColors($CurrCmd,$Color,BOLD) } { |
| 2892 |
return $Col(Bold$CmdsColors($CurrCmd,$Color,Col)) |
| 2893 |
} else { |
| 2894 |
return $Col($CmdsColors($CurrCmd,$Color,Col)) |
| 2895 |
} |
| 2896 |
} else { |
| 2897 |
if { $CmdsColors($CurrCmd,$Color,BOLD) } { |
| 2898 |
return $Col(BoldWHITE) |
| 2899 |
} else { |
| 2900 |
return $Col(WHITE) |
| 2901 |
} |
| 2902 |
} |
| 2903 |
} |
| 2904 |
|
| 2905 |
# return appropriate background according to colors found in variable |
| 2906 |
proc BgColor { Color} { |
| 2907 |
global CmdsColors Col CurrCmd |
| 2908 |
|
| 2909 |
if { $CmdsColors($CurrCmd,$Color,Bg) != "" } { |
| 2910 |
return $Col($CmdsColors($CurrCmd,$Color,Bg)) |
| 2911 |
} else { |
| 2912 |
return $Col(BLACKBG) |
| 2913 |
} |
| 2914 |
} |
| 2915 |
|
| 2916 |
InitVars |
| 2917 |
|
| 2918 |
# draw main window |
| 2919 |
|
| 2920 |
wm positionfrom . user |
| 2921 |
wm sizefrom . "" |
| 2922 |
wm title . "$Name $Version" |
| 2923 |
wm iconname . "$Name" |
| 2924 |
|
| 2925 |
# set up menu, just 4 entries |
| 2926 |
frame ._MainMenu -relief raised -bd 4 -background $DefaultBg |
| 2927 |
|
| 2928 |
menubutton ._MainMenu._File -text "File " -underline 0 \ |
| 2929 |
-menu ._MainMenu._File._Menu -background $DefaultBg |
| 2930 |
|
| 2931 |
menu ._MainMenu._File._Menu -tearoff 0 -background $DefaultBg |
| 2932 |
|
| 2933 |
._MainMenu._File._Menu add command -label "Load " -underline 0 \ |
| 2934 |
-command "Load" -background $DefaultBg |
| 2935 |
._MainMenu._File._Menu add command -label "Save " -underline 0 \ |
| 2936 |
-command "Save" -background $DefaultBg |
| 2937 |
._MainMenu._File._Menu add separator -background $DefaultBg |
| 2938 |
._MainMenu._File._Menu add command -label "Default " -underline 0 \ |
| 2939 |
-command "Default" -background $DefaultBg |
| 2940 |
._MainMenu._File._Menu add command -label "About " -underline 0 \ |
| 2941 |
-command "About" -background $DefaultBg |
| 2942 |
._MainMenu._File._Menu add separator -background $DefaultBg |
| 2943 |
._MainMenu._File._Menu add command -label "Quit " -underline 0 \ |
| 2944 |
-command "Quit" -background $DefaultBg |
| 2945 |
|
| 2946 |
pack ._MainMenu._File -side left |
| 2947 |
tk_menuBar ._MainMenu ._MainMenu._File -background $DefaultBg |
| 2948 |
pack ._MainMenu -side top -fill x |
| 2949 |
|
| 2950 |
# set up main frame |
| 2951 |
frame ._MainFrame -relief raised -bd 2 -background $DefaultBg |
| 2952 |
|
| 2953 |
#set up color bar |
| 2954 |
frame ._MainFrame._ColorBar -background $DefaultBg |
| 2955 |
|
| 2956 |
# first foreground colors |
| 2957 |
frame ._MainFrame._ColorBar._Fg -background $DefaultBg |
| 2958 |
label ._MainFrame._ColorBar._Fg._Text -text "Foreground Colors" -justify left \ |
| 2959 |
-background $DefaultBg |
| 2960 |
pack ._MainFrame._ColorBar._Fg._Text -side top -pady 2 |
| 2961 |
foreach index $ColNames { |
| 2962 |
button ._MainFrame._ColorBar._Fg._$index -command "ChoseColor $index" \ |
| 2963 |
-background $Col($index) -highlightthicknes 0 |
| 2964 |
pack ._MainFrame._ColorBar._Fg._$index -side left -ipadx 2 -fill x \ |
| 2965 |
-padx 1 -pady 3 |
| 2966 |
} |
| 2967 |
pack ._MainFrame._ColorBar._Fg -side left -padx 10 |
| 2968 |
|
| 2969 |
# then background colors |
| 2970 |
frame ._MainFrame._ColorBar._Bg -background $DefaultBg |
| 2971 |
label ._MainFrame._ColorBar._Bg._Text -text "Background Colors" -justify left \ |
| 2972 |
-background $DefaultBg |
| 2973 |
pack ._MainFrame._ColorBar._Bg._Text -side top -pady 2 |
| 2974 |
foreach index $ColNames { |
| 2975 |
button ._MainFrame._ColorBar._Bg._$index -command "ChoseBgColor $index" \ |
| 2976 |
-background $Col($index) -highlightthicknes 0 |
| 2977 |
pack ._MainFrame._ColorBar._Bg._$index -side left -ipadx 2 -fill x \ |
| 2978 |
-padx 1 -pady 3 |
| 2979 |
} |
| 2980 |
pack ._MainFrame._ColorBar._Bg -side left -padx 10 |
| 2981 |
|
| 2982 |
# attributes are below foreground colors |
| 2983 |
frame ._MainFrame._ColorBar._Attr -background $DefaultBg |
| 2984 |
label ._MainFrame._ColorBar._Attr._Text -text "Attributes" \ |
| 2985 |
-background $DefaultBg |
| 2986 |
pack ._MainFrame._ColorBar._Attr._Text -padx 40 -anchor w \ |
| 2987 |
-side top |
| 2988 |
frame ._MainFrame._ColorBar._Attr1 -background $DefaultBg |
| 2989 |
foreach index [ list OFF BOLD UNDERLINE ] { |
| 2990 |
set blah [ string tolower [ string range $index 1 end ] ] |
| 2991 |
set name [ string toupper [ string index $index 0 ] ]$blah |
| 2992 |
checkbutton ._MainFrame._ColorBar._Attr1._$index -text "$name" \ |
| 2993 |
-command "ChoseAttr $index" -underline 0 -highlightthicknes 0 \ |
| 2994 |
-variable CurrAttrs($index) -background $DefaultBg -width 8 \ |
| 2995 |
-anchor w |
| 2996 |
pack ._MainFrame._ColorBar._Attr1._$index \ |
| 2997 |
-side left -fill x -ipady 1 |
| 2998 |
} |
| 2999 |
pack ._MainFrame._ColorBar._Attr1 -side bottom -anchor w |
| 3000 |
frame ._MainFrame._ColorBar._Attr2 -background $DefaultBg |
| 3001 |
foreach index [ list FLASH REVERSE ] { |
| 3002 |
set blah [ string tolower [ string range $index 1 end ] ] |
| 3003 |
set name [ string toupper [ string index $index 0 ] ]$blah |
| 3004 |
checkbutton ._MainFrame._ColorBar._Attr2._$index -text "$name" \ |
| 3005 |
-command "ChoseAttr $index" -underline 0 -highlightthicknes 0 \ |
| 3006 |
-variable CurrAttrs($index) -background $DefaultBg -width 8 \ |
| 3007 |
-anchor w |
| 3008 |
pack ._MainFrame._ColorBar._Attr2._$index \ |
| 3009 |
-side left -fill x -ipady 1 |
| 3010 |
} |
| 3011 |
pack ._MainFrame._ColorBar._Attr2 -side bottom -anchor w |
| 3012 |
pack ._MainFrame._ColorBar._Attr -side left |
| 3013 |
|
| 3014 |
# at left we have first part of Cmds |
| 3015 |
frame ._MainFrame._Cmds1 -background $DefaultBg |
| 3016 |
for { set index 0 } { $index < 11 } { incr index } { |
| 3017 |
set cmd [ lindex $CmdsNames $index ] |
| 3018 |
set blah [ string tolower [ string range $cmd 1 end ] ] |
| 3019 |
set name [ string toupper [ string index $cmd 0 ] ]$blah |
| 3020 |
button ._MainFrame._Cmds1._$name -text "$name" -width 5 \ |
| 3021 |
-command "ChooseCmd $cmd 1 $name" -highlightthicknes 0 \ |
| 3022 |
-background $DefaultBg |
| 3023 |
pack ._MainFrame._Cmds1._$name -fill x -side left |
| 3024 |
} |
| 3025 |
|
| 3026 |
# below them we have second part of Cmds |
| 3027 |
frame ._MainFrame._Cmds2 -background $DefaultBg |
| 3028 |
for { set index 11 } { $index < 22 } { incr index } { |
| 3029 |
set cmd [ lindex $CmdsNames $index ] |
| 3030 |
set blah [ string tolower [ string range $cmd 1 end ] ] |
| 3031 |
set name [ string toupper [ string index $cmd 0 ] ]$blah |
| 3032 |
button ._MainFrame._Cmds2._$name -text "$name" -width 5 \ |
| 3033 |
-command "ChooseCmd $cmd 2 $name" -highlightthicknes 0 \ |
| 3034 |
-background $DefaultBg |
| 3035 |
pack ._MainFrame._Cmds2._$name -fill x -side left |
| 3036 |
} |
| 3037 |
|
| 3038 |
# below them we have third part of Cmds |
| 3039 |
frame ._MainFrame._Cmds3 -background $DefaultBg |
| 3040 |
for { set index 22 } { $index < 24 } { incr index } { |
| 3041 |
set cmd [ lindex $CmdsNames $index ] |
| 3042 |
set blah [ string tolower [ string range $cmd 1 end ] ] |
| 3043 |
set name [ string toupper [ string index $cmd 0 ] ]$blah |
| 3044 |
button ._MainFrame._Cmds3._$name -text "$name" -width 5 \ |
| 3045 |
-command "ChooseCmd $cmd 3 $name" -highlightthicknes 0 \ |
| 3046 |
-background $DefaultBg |
| 3047 |
pack ._MainFrame._Cmds3._$name -fill x -side left |
| 3048 |
} |
| 3049 |
|
| 3050 |
# below them we have 6 Colors |
| 3051 |
frame ._MainFrame._Colors -background $DefaultBg |
| 3052 |
button ._MainFrame._Colors._ClearAll -text "Clear all 6" \ |
| 3053 |
-command "ClearAllColors" -highlightthicknes 0 -background $DefaultBg \ |
| 3054 |
-underline 0 -width 6 |
| 3055 |
pack ._MainFrame._Colors._ClearAll -fill x -side top -pady 2 |
| 3056 |
button ._MainFrame._Colors._Clear -text "Clear cur." -command "ClearColor" \ |
| 3057 |
-highlightthicknes 0 -background $DefaultBg -underline 6 -width 6 |
| 3058 |
pack ._MainFrame._Colors._Clear -fill x -side top -pady 2 |
| 3059 |
foreach index $ColorNames { |
| 3060 |
radiobutton ._MainFrame._Colors._$index -text "$index" \ |
| 3061 |
-command "SelectColor $index" -variable CurrColor -value $index \ |
| 3062 |
-highlightthicknes 0 -background $DefaultBg |
| 3063 |
pack ._MainFrame._Colors._$index -fill x -side top -pady 2 |
| 3064 |
} |
| 3065 |
|
| 3066 |
# Sub-MainFrame |
| 3067 |
frame ._MainFrame._Sub -background $DefaultBg |
| 3068 |
|
| 3069 |
# in the middle we have frame for showing all 6 colors and for examples |
| 3070 |
# taken from ScrollZ output of various events |
| 3071 |
frame ._MainFrame._Sub._Screen -background black |
| 3072 |
label ._MainFrame._Sub._Screen._Dummy \ |
| 3073 |
-text " " \ |
| 3074 |
-font 5x7 -background $DefaultBg |
| 3075 |
pack ._MainFrame._Sub._Screen._Dummy |
| 3076 |
frame ._MainFrame._Sub._Screen._Colors -background black |
| 3077 |
foreach index $ColorNames { |
| 3078 |
label ._MainFrame._Sub._Screen._Colors._$index -text "$index" -width 2 \ |
| 3079 |
-highlightthicknes 2 -highlightbackground $Col(WHITE) |
| 3080 |
pack ._MainFrame._Sub._Screen._Colors._$index -fill x -side top \ |
| 3081 |
-padx 7 -pady 2 |
| 3082 |
} |
| 3083 |
pack ._MainFrame._Sub._Screen._Colors -fill x -side left \ |
| 3084 |
-ipadx 15 -pady 10 |
| 3085 |
|
| 3086 |
# examples of how the output will look like |
| 3087 |
frame ._MainFrame._Sub._Screen._Text -background black |
| 3088 |
foreach index [ list 1 2 3 4 5 6 7 8 9 10 11 12 ] { |
| 3089 |
frame ._MainFrame._Sub._Screen._Text._"L$index" -background black |
| 3090 |
pack ._MainFrame._Sub._Screen._Text._"L$index" -side top -anchor w |
| 3091 |
foreach word [ list 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 ] { |
| 3092 |
label ._MainFrame._Sub._Screen._Text._"L$index"._"W$word" \ |
| 3093 |
-background black -font "8x13bold" |
| 3094 |
pack ._MainFrame._Sub._Screen._Text._"L$index"._"W$word" -side left \ |
| 3095 |
-padx 0 |
| 3096 |
} |
| 3097 |
} |
| 3098 |
pack ._MainFrame._Sub._Screen._Text -fill x -side left -pady 10 |
| 3099 |
|
| 3100 |
pack ._MainFrame._Sub._Screen -fill x -side left |
| 3101 |
|
| 3102 |
# at right there are buttons for quick access |
| 3103 |
frame ._MainFrame._Sub._Buttons -background $DefaultBg |
| 3104 |
foreach index [ list Load Save Default About Quit ] { |
| 3105 |
button ._MainFrame._Sub._Buttons._$index -text "$index" \ |
| 3106 |
-command "$index" -underline 0 -highlightthicknes 0 \ |
| 3107 |
-background $DefaultBg |
| 3108 |
pack ._MainFrame._Sub._Buttons._$index -ipadx 4 -ipady 4 -fill x \ |
| 3109 |
-padx 2 -pady 2 |
| 3110 |
} |
| 3111 |
pack ._MainFrame._Sub._Buttons -side top -padx 8 -pady 8 |
| 3112 |
|
| 3113 |
bind . <Alt-l> { Load } |
| 3114 |
bind . <Alt-s> { Save } |
| 3115 |
bind . <Alt-d> { Default } |
| 3116 |
bind . <Alt-a> { About } |
| 3117 |
bind . <Alt-q> { Quit } |
| 3118 |
bind . <Alt-c> { ClearColor } |
| 3119 |
bind . <Alt-C> { ClearAllColors } |
| 3120 |
bind . <Alt-1> { |
| 3121 |
set CurrColor Color1 |
| 3122 |
RefreshColors |
| 3123 |
SelectColor Color1 |
| 3124 |
} |
| 3125 |
bind . <Alt-2> { |
| 3126 |
set CurrColor Color2 |
| 3127 |
RefreshColors |
| 3128 |
SelectColor Color2 |
| 3129 |
} |
| 3130 |
bind . <Alt-3> { |
| 3131 |
set CurrColor Color3 |
| 3132 |
RefreshColors |
| 3133 |
SelectColor Color3 |
| 3134 |
} |
| 3135 |
bind . <Alt-4> { |
| 3136 |
set CurrColor Color4 |
| 3137 |
RefreshColors |
| 3138 |
SelectColor Color4 |
| 3139 |
} |
| 3140 |
bind . <Alt-5> { |
| 3141 |
set CurrColor Color5 |
| 3142 |
RefreshColors |
| 3143 |
SelectColor Color5 |
| 3144 |
} |
| 3145 |
bind . <Alt-6> { |
| 3146 |
set CurrColor Color6 |
| 3147 |
RefreshColors |
| 3148 |
SelectColor Color6 |
| 3149 |
} |
| 3150 |
bind . <Alt-o> { |
| 3151 |
if { $CurrAttrs(OFF) } { |
| 3152 |
set CurrAttrs(OFF) 0 |
| 3153 |
} else { |
| 3154 |
set CurrAttrs(OFF) 1 |
| 3155 |
} |
| 3156 |
ChoseAttr OFF |
| 3157 |
} |
| 3158 |
bind . <Alt-b> { |
| 3159 |
if { $CurrAttrs(BOLD) } { |
| 3160 |
set CurrAttrs(BOLD) 0 |
| 3161 |
} else { |
| 3162 |
set CurrAttrs(BOLD) 1 |
| 3163 |
} |
| 3164 |
ChoseAttr BOLD |
| 3165 |
} |
| 3166 |
bind . <Alt-u> { |
| 3167 |
if { $CurrAttrs(UNDERLINE) } { |
| 3168 |
set CurrAttrs(UNDERLINE) 0 |
| 3169 |
} else { |
| 3170 |
set CurrAttrs(UNDERLINE) 1 |
| 3171 |
} |
| 3172 |
ChoseAttr UNDERLINE |
| 3173 |
} |
| 3174 |
# reconfigure checkbutton for flash to have underlined letter h |
| 3175 |
._MainFrame._ColorBar._Attr2._FLASH config -underline 4 |
| 3176 |
bind . <Alt-h> { |
| 3177 |
if { $CurrAttrs(FLASH) } { |
| 3178 |
set CurrAttrs(FLASH) 0 |
| 3179 |
} else { |
| 3180 |
set CurrAttrs(FLASH) 1 |
| 3181 |
} |
| 3182 |
ChoseAttr FLASH |
| 3183 |
} |
| 3184 |
bind . <Alt-r> { |
| 3185 |
if { $CurrAttrs(REVERSE) } { |
| 3186 |
set CurrAttrs(REVERSE) 0 |
| 3187 |
} else { |
| 3188 |
set CurrAttrs(REVERSE) 1 |
| 3189 |
} |
| 3190 |
ChoseAttr REVERSE |
| 3191 |
} |
| 3192 |
|
| 3193 |
# set up status line |
| 3194 |
frame ._Status -relief sunken -bd 1 -background $DefaultBg |
| 3195 |
label ._Status._Desc -text "Status: " -background $DefaultBg |
| 3196 |
label ._Status._Text -text "Ready" -justify left -background $DefaultBg |
| 3197 |
pack ._Status._Desc -side left -padx 2 -pady 2 |
| 3198 |
pack ._Status._Text -side left -pady 2 -fill x |
| 3199 |
|
| 3200 |
#pack MainFrame |
| 3201 |
pack ._MainFrame._Cmds1 -padx 40 -ipady 2 -anchor w |
| 3202 |
pack ._MainFrame._Cmds2 -padx 40 -ipady 2 -anchor w |
| 3203 |
pack ._MainFrame._Cmds3 -padx 40 -anchor w |
| 3204 |
pack ._MainFrame._ColorBar -side top -anchor w -padx 10 |
| 3205 |
pack ._MainFrame._Colors -padx 10 -side left |
| 3206 |
pack ._MainFrame._Sub -side left -anchor n -pady 10 |
| 3207 |
|
| 3208 |
# pack all together |
| 3209 |
pack ._MainMenu -side top -fill x |
| 3210 |
pack ._MainFrame -expand true -fill both |
| 3211 |
pack ._Status -side bottom -fill x |
| 3212 |
|
| 3213 |
# start of main program |
| 3214 |
ChooseCmd WARNING 1 Warning |