Annotation of embedaddon/readline/parse-colors.h, revision 1.1.1.1

1.1       misho       1: /* `dir', `vdir' and `ls' directory listing programs for GNU.
                      2: 
                      3:    Modified by Chet Ramey for Readline.
                      4: 
                      5:    Copyright (C) 1985, 1988, 1990-1991, 1995-2010, 2012 Free Software Foundation,
                      6:    Inc.
                      7: 
                      8:    This program is free software: you can redistribute it and/or modify
                      9:    it under the terms of the GNU General Public License as published by
                     10:    the Free Software Foundation, either version 3 of the License, or
                     11:    (at your option) any later version.
                     12: 
                     13:    This program is distributed in the hope that it will be useful,
                     14:    but WITHOUT ANY WARRANTY; without even the implied warranty of
                     15:    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                     16:    GNU General Public License for more details.
                     17: 
                     18:    You should have received a copy of the GNU General Public License
                     19:    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
                     20: 
                     21: /* Written by Richard Stallman and David MacKenzie.  */
                     22: 
                     23: /* Color support by Peter Anvin <Peter.Anvin@linux.org> and Dennis
                     24:    Flaherty <dennisf@denix.elk.miles.com> based on original patches by
                     25:    Greg Lee <lee@uhunix.uhcc.hawaii.edu>.  */
                     26: 
                     27: #ifndef _PARSE_COLORS_H_
                     28: #define _PARSE_COLORS_H_
                     29: 
                     30: #include "readline.h"
                     31: 
                     32: #define LEN_STR_PAIR(s) sizeof (s) - 1, s
                     33: 
                     34: void _rl_parse_colors (void);
                     35: 
                     36: static const char *const indicator_name[]=
                     37:   {
                     38:     "lc", "rc", "ec", "rs", "no", "fi", "di", "ln", "pi", "so",
                     39:     "bd", "cd", "mi", "or", "ex", "do", "su", "sg", "st",
                     40:     "ow", "tw", "ca", "mh", "cl", NULL
                     41:   };
                     42: 
                     43: /* Buffer for color sequences */
                     44: static char *color_buf;
                     45: 
                     46: #endif /* !_PARSE_COLORS_H_ */

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>