In the last project, we created a personalized terminal command with various features. This will extend on that, by styling our command with fancy_terminal kennel.
If you don't know what kennels are, more about that here.
The fancy_terminal kennel provides incredibly easy ways to style output text. For example, let's style the show_welcome function we created.
func show_welcome() {
bark(GREEN + "*** Welcome to my terminal command! ***" + RESET);
bark(ITALIC + "Type 'exit' to exit this command" + RESET);
}
As you can see, we just combine colors and format the strings in a way that "fancies" the output. We have to add the RESET sequence because the color will stay the same throughout the entire terminal if we don't.
You can apply any color to any string and bark it to the terminal.
See fancy_terminal for more info.