Home > Software engineering >  Linux: terminal colors shell script
Linux: terminal colors shell script

Time:08-15

I have some questions about how to enhance/customize the output of my scripts:

  • How and what is the best way to color the output of a bash script (I know there are ANSI codes but they seem quite long to type and a bit counter-intuitive)?
  • How can I make a menu like the one you get when you install a Linux system without the GUI? Like this for example enter image description here

Sorry if the question is a bit unclear, I'm new and I'm trying to learn :) hope someone can help addressing me or suggest some resources

CodePudding user response:

A library called ncurses, you can build that kind of menu.

You can get more info in: https://en.m.wikipedia.org/wiki/Ncurses

The colored ouput I know that only can do by ANSI codes. You should look this question.

  • Related