-
Notifications
You must be signed in to change notification settings - Fork 1
/
ft_putchar_color.c
22 lines (20 loc) · 1.03 KB
/
ft_putchar_color.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putchar_color.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: oadhesiv <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/07/05 16:50:25 by oadhesiv #+# #+# */
/* Updated: 2019/07/05 16:51:58 by oadhesiv ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
void ft_putchar_color(char c, t_byte color)
{
ft_putstr("\033[0;");
ft_putnbr(color);
ft_putchar('m');
ft_putchar(c);
ft_putstr("\033[0m");
}