tuned HTML display of ANSI colors for better readability;
authorFabian Huch <huch@in.tum.de>
Tue, 09 Jul 2024 15:06:24 +0200
changeset 80536 63afde05a820
parent 80535 417fcf9f5e71
child 80537 06c80577f589
tuned HTML display of ANSI colors for better readability;
src/Pure/Build/build_manager.scala
--- a/src/Pure/Build/build_manager.scala	Tue Jul 09 14:13:59 2024 +0200
+++ b/src/Pure/Build/build_manager.scala	Tue Jul 09 15:06:24 2024 +0200
@@ -1261,7 +1261,7 @@
       def render_diff(build: Build, state: State): XML.Body = render_page("Diff: " + build.name) {
         def colored(s: String): XML.Body = {
           val Colored = "([^\u001b]*)\u001b\\[([0-9;]+)m(.*)\u001b\\[0m([^\u001b]*)".r
-          val colors = List("black", "red", "green", "yellow", "blue", "magenta", "cyan", "white")
+          val colors = List("black", "maroon", "green", "olive", "navy", "purple", "teal", "silver")
 
           val lines = split_lines(s).map {
             case Colored(pre, code, s, post) =>