PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : ab zeile x eine andere farbe


Xtreame
07.07.2006, 21:11
hi,

hab da ein kleines prob. Habe ein bash sript welches mit einem public command abgerufen wird, die ausgabe klappt auch wunderbar im channel.
jedoch würd ich gern das ab einer bestimmten zeile ein anderer Farbcode ausgegeben wird im moment ist ja alles rot.
z.b.
Zeile 1 rot
Zeile 2 rot
Zeile 3 rot
Zeile 4 rot
Zeile 5 gelb
Zeile 6 gelb
etc.


bind pub - !test pub:gssr

proc pub:gssr {nick output binary chan text} {
set binary {/script/liegt/irgendwo}
set what [lindex $text 0]
foreach line [split [exec $binary $what shell] "\n"] {
puthelp "PRIVMSG $chan :\0034$line\0034"
}
}


besten dank schonmal im vorraus

edit: close