1. Evan Gates
  2. pcw

Commits

Evan Gates  committed 89a64b7

more color fixes

  • Participants
  • Parent commits 2b22957
  • Branches default

Comments (0)

Files changed (1)

File extras/cw_color.sh

View file
 done
 
 cw "$IN" "$OUT" "$MARGIN" |
-	sed -e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\) <\([^$MARGIN]*\)>/${yellow}\1 ${green}\2${reset} <${cyan}\3${reset}>/" \
-		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\) \(-!-\)/${yellow}\1 ${green}\2${reset} ${magenta}\3${reset}/" \
+	sed -e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\) \([^$MARGIN]*\)$MARGIN/${yellow}\1 ${green}\2${reset} ${cyan}\3${reset}$MARGIN/" \
+		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\)\( *-!-\)/${yellow}\1 ${green}\2${reset} ${magenta}\3${reset}/" \
 		-e "s/^\([-0-9]\{10,10\}\) \([:0-9]\{5,5\}\)/${yellow}\1 ${green}\2${reset}/" \
 		-e "s/$NICK/\a${red}&${reset}/g"