src/Pure/library.scala
changeset 71864 bfc120aa737a
parent 71601 97ccf48c2f0c
child 72214 5924c1da3c45
--- a/src/Pure/library.scala	Fri May 22 13:53:19 2020 +0200
+++ b/src/Pure/library.scala	Fri May 22 15:53:47 2020 +0200
@@ -144,6 +144,9 @@
 
   def isolate_substring(s: String): String = new String(s.toCharArray)
 
+  def strip_ansi_color(s: String): String =
+    s.replaceAll("""\u001b\[\d+m""", "")
+
 
   /* quote */