xref: /dflybsd-src/contrib/grep/lib/colorize.h (revision 91b9ed38d3db6a8a8ac5b66da1d43e6e331e259a)
1cf28ed85SJohn Marino /* Output colorization.
2cf28ed85SJohn Marino 
3*09d4459fSDaniel Fojt    Copyright 2011-2020 Free Software Foundation, Inc.
4cf28ed85SJohn Marino    This program is free software; you can redistribute it and/or modify
5cf28ed85SJohn Marino    it under the terms of the GNU General Public License as published by
6cf28ed85SJohn Marino    the Free Software Foundation; either version 3, or (at your option)
7cf28ed85SJohn Marino    any later version.
8cf28ed85SJohn Marino 
9cf28ed85SJohn Marino    This program is distributed in the hope that it will be useful,
10cf28ed85SJohn Marino    but WITHOUT ANY WARRANTY; without even the implied warranty of
11cf28ed85SJohn Marino    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12cf28ed85SJohn Marino    GNU General Public License for more details.
13cf28ed85SJohn Marino 
14cf28ed85SJohn Marino    You should have received a copy of the GNU General Public License
15cf28ed85SJohn Marino    along with this program; if not, write to the Free Software
16cf28ed85SJohn Marino    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
17cf28ed85SJohn Marino    02110-1301, USA.  */
18cf28ed85SJohn Marino 
19cf28ed85SJohn Marino extern int should_colorize (void);
20cf28ed85SJohn Marino extern void init_colorize (void);
21cf28ed85SJohn Marino extern void print_start_colorize (char const *sgr_start, char const *sgr_seq);
22cf28ed85SJohn Marino extern void print_end_colorize (char const *sgr_end);
23