This commit is contained in:
Liam Waldron 2023-05-11 12:10:13 -04:00
parent e7c7ec4a1d
commit c17b6b5f43
4 changed files with 24 additions and 6 deletions

View File

@ -1,4 +1,4 @@
include config.mk
install: src/libcolor.h
install src/libcolor.h $(PREFIX)/include/libcolor.h
install: src/color.h
install src/color.h $(PREFIX)/include/color.h

10
README
View File

@ -1,16 +1,18 @@
+ libcolor
A library to style programs with command-line interaction. Includes colors and symbols.
A library to style programs with command-line interaction.
+ Usage
#include <color.h>
#include <stdio.h>
#include "libcolor.h"
int main() {
int
main()
{
printf(COL_RED "red\n" COL_RESET);
printf(COL_BLUE "blue\n" COL_RESET);
printf(TXT_BOLd "bold\n" TXT_RESET);
printf(COL_GREEB "green\n" COL_RESET);
}
+ Installation

16
man/libcolor.3 Normal file
View File

@ -0,0 +1,16 @@
.\" Manpage for libcolor.
.TH man 3 "11 May 2023" "1.0" "Everest Linux Libraries Manual"
.SH NAME
libcolor \- color output support for C programs
.SH SYNOPSIS
#include <color.h>
printf(COL_RED COL_RESET);
.SH DESCRIPTION
libcolor is a header file that aims to support printing colors in C programs in a more readable way.
.SH SEE ALSO
libecrypt(3)
.SH BUGS
Report all bugs on the issues page at https://git.everestlinux.org/EverestLinux/libcolor
.SH AUTHOR
Liam Waldron (liamwaldron@everestlinux.org)