update: adding colors and the debug mode

This commit is contained in:
Raphael 2024-10-15 00:15:21 +02:00
parent ce42218b88
commit 9d476992bc
5 changed files with 55 additions and 20 deletions

View file

@ -6,7 +6,7 @@
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/09/20 18:59:14 by rparodi #+# #+# */
/* Updated: 2024/10/14 19:05:17 by rparodi ### ########.fr */
/* Updated: 2024/10/15 00:14:00 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,9 +14,17 @@
#define PHONEBOOK_H
#include <iostream>
#include <ostream>
#include <string>
#include <cstring>
#include <ctime>
#define MENU_TEXT "You're in the main menu:\nHere's the command:\n\t- ADD: To add a new contact\n\t- SEARCH: To search a contact\n\t- EXIT: to exit the program"
#define MENU_TEXT "You're in the main menu:\nHere's the command:\n\t- " << BLUE << "ADD: " << RESET << "To add a new contact\n\t- " BLUE << "SEARCH: " << RESET "To search a contact\n\t- " BLUE << "EXIT: " << RESET "to exit the program"
#define GREY "\033[0;90m"
#define RED "\033[31m"
#define GREEN "\033[32m"
#define BLUE "\033[34m"
#define RESET "\033[0m"
#ifndef DEBUG
# define DEBUG 0
@ -30,8 +38,8 @@ class contact {
std::string last_name;
std::string nickname;
std::string dark_secret;
void print(void);
struct tm *creation_time;
void _debug(void);
};
#endif