grep/lib/colorize.h
2026-01-02 16:42:12 -08:00

21 lines
914 B
C

/* Output colorization.
Copyright 2011-2026 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
extern int should_colorize (void);
extern void init_colorize (void);
extern void print_start_colorize (char const *sgr_start, char const *sgr_seq);
extern void print_end_colorize (char const *sgr_end);