X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/1399490e2bb58e1e7212d7a8469e1286ced9423a..2958e5237c6ee57378f1b47217aafd0b21ec86ab:/lisp/ansi-color.el diff --git a/lisp/ansi-color.el b/lisp/ansi-color.el index bbe44f9b20..5088c3d707 100644 --- a/lisp/ansi-color.el +++ b/lisp/ansi-color.el @@ -1,6 +1,6 @@ ;;; ansi-color.el --- translate ANSI escape sequences into faces -*- lexical-binding: t -*- -;; Copyright (C) 1999-2013 Free Software Foundation, Inc. +;; Copyright (C) 1999-2015 Free Software Foundation, Inc. ;; Author: Alex Schroeder ;; Maintainer: Alex Schroeder @@ -40,11 +40,11 @@ ;; ;; SGR control sequences are defined in section 3.8.117 of the ECMA-48 ;; standard (identical to ISO/IEC 6429), which is freely available as a -;; PDF file . The -;; "Graphic Rendition Combination Mode (GRCM)" implemented is -;; "cumulative mode" as defined in section 7.2.8. Cumulative mode means -;; that whenever possible, SGR control sequences are combined (ie. blue -;; and bold). +;; PDF file . +;; The "Graphic Rendition Combination Mode (GRCM)" implemented is +;; "cumulative mode" as defined in section 7.2.8. Cumulative mode +;; means that whenever possible, SGR control sequences are combined +;; (ie. blue and bold). ;; The basic functions are: ;; @@ -117,7 +117,7 @@ map. This color map is stored in the variable `ansi-color-map'." :group 'ansi-colors) (defcustom ansi-color-names-vector - ["black" "red" "green" "yellow" "blue" "magenta" "cyan" "white"] + ["black" "red3" "green3" "yellow3" "blue2" "magenta3" "cyan3" "gray90"] "Colors used for SGR control sequences determining a color. This vector holds the colors used for SGR control sequences parameters 30 to 37 (foreground colors) and 40 to 47 (background colors). @@ -147,13 +147,14 @@ foreground and background colors, respectively." (choice color (cons color color))) :set 'ansi-color-map-update :initialize 'custom-initialize-default + :version "24.4" ; default colors copied from `xterm-standard-colors' :group 'ansi-colors) (defconst ansi-color-regexp "\033\\[\\([0-9;]*m\\)" "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;]"