v2
This commit is contained in:
parent
e7c7ec4a1d
commit
c17b6b5f43
4
Makefile
4
Makefile
@ -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
10
README
@ -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
16
man/libcolor.3
Normal 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)
|
Loading…
Reference in New Issue
Block a user