?
Current Path : /usr/share/emacs/24.3/lisp/ |
Linux gator3171.hostgator.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 |
Current File : //usr/share/emacs/24.3/lisp/ansi-color.elc |
;ELC ;;; Compiled by mockbuild@buildfarm06-new.corp.cloudlinux.com on Fri Oct 11 10:06:11 2024 ;;; from file /builddir/build/BUILD/emacs-24.3/lisp/ansi-color.el ;;; in Emacs version 24.3.1 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301\302\303\304\305\306\307&\210\310\311\312\313\314\315\316\317\320\321\306\301&\210\310\322\323\324\314\325\316\317\320\321\306\301&\207" [custom-declare-group ansi-colors nil "Translating SGR control sequences to faces.\nThis translation effectively colorizes strings and regions based upon\nSGR control sequences embedded in the text. SGR (Select Graphic\nRendition) control sequences are defined in section 8.3.117 of the\nECMA-48 standard (identical to ISO/IEC 6429), which is freely available\nas a PDF file <URL:http://www.ecma.ch/ecma1/STAND/ECMA-048.HTM>." :version "21.1" :group processes custom-declare-variable ansi-color-faces-vector [default bold default italic underline success warning error] "Faces used for SGR control sequences determining a face.\nThis vector holds the faces used for SGR control sequence parameters 0\nto 7.\n\nParameter Description Face used by default\n 0 default default\n 1 bold bold\n 2 faint default\n 3 italic italic\n 4 underlined underline\n 5 slowly blinking success\n 6 rapidly blinking warning\n 7 negative image error\n\nNote that the symbol `default' is special: It will not be combined\nwith the current face.\n\nThis vector is used by `ansi-color-make-color-map' to create a color\nmap. This color map is stored in the variable `ansi-color-map'." :type (vector face face face face face face face face) :set ansi-color-map-update :initialize custom-initialize-default ansi-color-names-vector ["black" "red" "green" "yellow" "blue" "magenta" "cyan" "white"] "Colors used for SGR control sequences determining a color.\nThis vector holds the colors used for SGR control sequences parameters\n30 to 37 (foreground colors) and 40 to 47 (background colors).\n\nParameter Color\n 30 40 black\n 31 41 red\n 32 42 green\n 33 43 yellow\n 34 44 blue\n 35 45 magenta\n 36 46 cyan\n 37 47 white\n\nThis vector is used by `ansi-color-make-color-map' to create a color\nmap. This color map is stored in the variable `ansi-color-map'.\n\nEach element may also be a cons cell where the car and cdr specify the\nforeground and background colors, respectively." (vector (choice color (cons color color)) (choice color (cons color color)) (choice color (cons color color)) (choice color (cons color color)) (choice color (cons color color)) (choice color (cons color color)) (choice color (cons color color)) (choice color (cons color color)))] 12) #@44 Regexp that matches SGR control sequences. (defconst ansi-color-regexp "\\[\\([0-9;]*m\\)" (#$ . 3132)) #@62 Regexp that matches ANSI control sequences to silently drop. (defconst ansi-color-drop-regexp "\\[\\([ABCDsuK]\\|2J\\|=[0-9]+[hI]\\|[0-9;]*[Hf]\\)" (#$ . 3243)) #@54 Regexp that matches SGR control sequence parameters. (defconst ansi-color-parameter-regexp "\\([0-9]*\\)[m;]" (#$ . 3411)) #@551 Determines what to do with comint output. If nil, do nothing. If the symbol `filter', then filter all SGR control sequences. If anything else (such as t), then translate SGR control sequences into text properties. In order for this to have any effect, `ansi-color-process-output' must be in `comint-output-filter-functions'. This can be used to enable colorized ls --color=yes output in shell buffers. You set this variable by calling one of: \[ansi-color-for-comint-mode-on] \[ansi-color-for-comint-mode-off] \[ansi-color-for-comint-mode-filter] (custom-declare-variable 'ansi-color-for-comint-mode t '(#$ . 3541) :type '(choice (const :tag "Do nothing" nil) (const :tag "Filter" filter) (const :tag "Translate" t)) :group 'ansi-colors :version "23.2") #@191 Function for applying an Ansi Color face to text in a buffer. This function should accept three arguments: BEG, END, and FACE, and it should apply face FACE to the text between BEG and END. (defvar ansi-color-apply-face-function 'ansi-color-apply-overlay-face (#$ . 4305)) #@40 Set `ansi-color-for-comint-mode' to t. (defalias 'ansi-color-for-comint-mode-on #[nil "\301\211\207" [ansi-color-for-comint-mode t] 2 (#$ . 4584) nil]) #@42 Set `ansi-color-for-comint-mode' to nil. (defalias 'ansi-color-for-comint-mode-off #[nil "\301\211\207" [ansi-color-for-comint-mode nil] 2 (#$ . 4743) nil]) #@54 Set `ansi-color-for-comint-mode' to symbol `filter'. (defalias 'ansi-color-for-comint-mode-filter #[nil "\301\211\207" [ansi-color-for-comint-mode filter] 2 (#$ . 4907) nil]) #@513 Maybe translate SGR control sequences of comint output into text properties. Depending on variable `ansi-color-for-comint-mode' the comint output is either not processed, SGR control sequences are filtered using `ansi-color-filter-region', or SGR control sequences are translated into text properties using `ansi-color-apply-on-region'. The comint output is assumed to lie between the marker `comint-last-output-start' and the process-mark. This is a good function to put in `comint-output-filter-functions'. (defalias 'ansi-color-process-output #[(ignored) "\304!\203 \305!p=\203 \306!\203 \202 \307 \310\311p!!\312=\2068 \313=\2034 \314\n \"\2028 \315\n \"*\207" [comint-last-output-start end-marker start-marker ansi-color-for-comint-mode markerp marker-buffer marker-position point-min-marker process-mark get-buffer-process nil filter ansi-color-filter-region ansi-color-apply-on-region] 4 (#$ . 5090)]) (byte-code "\300\301\302\303#\210\304\301\302\305#\207" [defalias ansi-color-unfontify-region font-lock-default-unfontify-region nil make-obsolete "24.1"] 4) #@320 Context saved between two calls to `ansi-color-apply'. This is a list of the form (CODES FRAGMENT) or nil. CODES represents the state the last call to `ansi-color-apply' ended with, currently a list of ansi codes, and FRAGMENT is a string starting with an escape sequence, possibly the start of a new escape sequence. (defvar ansi-color-context nil (#$ . 6179)) (make-variable-buffer-local 'ansi-color-context) #@376 Filter out all ANSI control sequences from STRING. Every call to this function will set and use the buffer-local variable `ansi-color-context' to save partial escape sequences. This information will be used for the next call to `ansi-color-apply'. Set `ansi-color-context' to nil if you don't want this. This function can be added to `comint-preoutput-filter-functions'. (defalias 'ansi-color-filter-apply #[(string) "\306\307\211\211A@)\203 \211A@) P\307\310\n \n#\211\2032 \n OP\306\225\202 \307\310\311 \n#\203T \306\224\f \f\307O \n\fOP)\202[ \n\307OP\205d \307D)+\207" [result end start ansi-color-context x string 0 nil string-match "" ansi-color-regexp fragment pos] 5 (#$ . 6598)]) #@41 Return the face corresponding to CODES. (defalias 'ansi-color--find-face #[(codes) "\303 \203 \304 \211A@!\211\305=\204 \nB)\202 A\203&