I know the color chart and I know a little about how to use it, but...
How to color specific regions of an array, like the rocket's nose?
red = "\e[31;10m"; . . . redb = "\e[31;7m"; redc = "\e[31;9m";
#include <stdio.h>
#define LINE 11
#define COLN 11
// String to display Rocket
const char rocket[LINE][COLN] ={
" ^ ",
" /^\\ ",
" |-| ",
" | | ",
" |W| ",
" |E| ",
" |E| ",
" |E| ",
" /| |\\ ",
" / | | \\ ",
" | | | | "
};
int main(){
for(int i = 0; i< LINE; i++){
printf("%.*s\n",COLN, rocket[i]);
}
printf("\33[0;36mBut if I want to color specific parts like the description, WEEE. \33[0m");
printf("\33[31;10mIn the rocket, what will it be like?\33[0m\n");
}