Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update function to print bold text #63

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/mdsanima.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@

void cprint(const char *text, int foreground, int background)
{
printf("\e[38;5;%dm\e[48;5;%dm%s\e[0m\n", foreground, background, text);
printf("\e[38;5;%dm\e[48;5;%dm\e[1m%s\e[0m\n", foreground, background, text);
}
2 changes: 1 addition & 1 deletion lib/mdsanima.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*
* @note Wrapper for the ANSI escape sequence, where 0 is black and 255 is white.
*
* @param text The text message to stdout print in the color on the terminal.
* @param text The bold text message to stdout print in the color on the terminal.
* @param foreground The foreground color of the text message. A number from 0 to 255.
* @param background The background color of the text message. A number from 0 to 255.
*/
Expand Down