summaryrefslogtreecommitdiff
path: root/src/common.h
blob: 163cf20868273935883b3f00ac84262a041ddbf5 (plain)
    1 /**
    2  * Nullprompt is a fast, pretty, and basic PS1 prompt program
    3  * Copyright (C) 2024  Aaron Ball, nullspoon at oper dot io
    4  *
    5  * This program is free software: you can redistribute it and/or modify
    6  * it under the terms of the GNU General Public License as published by
    7  * the Free Software Foundation, either version 3 of the License, or
    8  * (at your option) any later version.
    9  *
   10  * This program is distributed in the hope that it will be useful,
   11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
   12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13  * GNU General Public License for more details.
   14  *
   15  * You should have received a copy of the GNU General Public License
   16  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
   17  */
   18 #ifndef _COMMON_H
   19 #define _COMMON_H
   20 
   21 #include <string.h>
   22 #include <stdio.h>
   23 
   24 #define CRED      "\\[\e[1;31m\\]"
   25 #define CGREEN    "\\[\e[1;32m\\]"
   26 #define CYELLOW   "\\[\e[1;33m\\]"
   27 #define CBLUE     "\\[\e[1;34m\\]"
   28 #define CPURPLE   "\\[\e[1;35m\\]"
   29 #define CCYAN     "\\[\e[1;36m\\]"
   30 #define CRESET    "\\[\e[0m\\]"
   31 #define CBOLD     "\\[\e[1m\\]"
   32 #define CDIM      "\\[\e[2m\\]"
   33 #define CITALIC   "\\[\e[3m\\]"
   34 #define CUNDERLINE "\\[\e[4m\\]"
   35 
   36 void rtrim(char*);
   37 void ellipt(char*, char*, int);
   38 
   39 #endif

Generated by cgit