]> code.delx.au - gnu-emacs/blobdiff - lisp/ansi-color.el
* ansi-color.el (ansi-color-drop-regexp): Add 1J, 1K, 2K.
[gnu-emacs] / lisp / ansi-color.el
index 105352117b7a3386b6e06cfac88d967f7cdb22ca..a5978144e9b259c065d1a349b8bc44d8ca2cccd0 100644 (file)
@@ -153,7 +153,7 @@ foreground and background colors, respectively."
   "Regexp that matches SGR control sequences.")
 
 (defconst ansi-color-drop-regexp
-  "\033\\[\\([ABCDsuK]\\|2J\\|=[0-9]+[hI]\\|[0-9;]*[Hf]\\)"
+  "\033\\[\\([ABCDsuK]\\|[12][JK]\\|=[0-9]+[hI]\\|[0-9;]*[Hf]\\)"
   "Regexp that matches ANSI control sequences to silently drop.")
 
 (defconst ansi-color-parameter-regexp "\\([0-9]*\\)[m;]"