display.h (1391B)
1 /* 2 * 3 * Wireless daemon for Linux 4 * 5 * Copyright (C) 2013-2019 Intel Corporation. All rights reserved. 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 20 * 21 */ 22 23 #include <stdbool.h> 24 25 bool use_color(void); 26 27 #define COLOR_OFF "\x1B[0m" 28 #define COLOR_BLACK "\x1B[0;30m" 29 #define COLOR_RED "\x1B[0;31m" 30 #define COLOR_GREEN "\x1B[0;32m" 31 #define COLOR_YELLOW "\x1B[0;33m" 32 #define COLOR_BLUE "\x1B[0;34m" 33 #define COLOR_MAGENTA "\x1B[0;35m" 34 #define COLOR_CYAN "\x1B[0;36m" 35 #define COLOR_WHITE "\x1B[0;37m" 36 #define COLOR_WHITE_BG "\x1B[0;47m" 37 #define COLOR_HIGHLIGHT "\x1B[1;39m" 38 39 #define COLOR_ERROR "\x1B[1;31m" 40 41 unsigned int num_columns(void); 42 43 void open_pager(void); 44 void close_pager(void);