Write a Bash script that presents the user with a choice of terminal font and ba
ID: 3721734 • Letter: W
Question
Write a Bash script that presents the user with a choice of terminal font and background colors. Once selected by the user, the terminal reflects the choices. Test your script. More info here: http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x329.html
Consider this color setting command syntax: $ echo -e "e[0;[font(3) or background(4)][color-code]m” For example, this command changes your font color to blue: $ echo -e "e[0;34m” This command changes your background color to red: $ echo -e "e[0;41m” This command accomplishes both of the above: $ echo -e "e[0;34;41m" Here are the color schemes: 0 = Black 1 = Red 2 = Green 3 = Yellow 4 = Blue 5 = Magenta 6 = Cyan 7 = Whit
Explanation / Answer
#!/bin/bash for((i=16; iRelated Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.