Horje
how to change colors in terminal linux outputs Code Example
how to change colors in terminal linux outputs
#!/bin/sh
RED_ON_GREEN='\033[31;42m'
RESET='\033[0m'
echo "${RED_ON_GREEN}Hello world${RESET}"
how to change colors in terminal linux outputs
#!/bin/sh
RED_FG=`tput setaf 1`
GREEN_BG=`tput setab 2`
RESET=`tput sgr0`
echo "${RED_FG}${GREEN_BG}Hello world${RESET}"
how to change colors in terminal linux outputs
#!/bin/sh
MOVE_UP=`tput cuu 1`
CLEAR_LINE=`tput el 1`
BOLD=`tput bold`
UNDERLINE=`tput smul`
RESET=`tput sgr0`
echo "This is normal text"
sleep 1
echo "${MOVE_UP}${CLEAR_LINE}${BOLD}This is bolded"
sleep 1
echo "${MOVE_UP}${CLEAR_LINE}${UNDERLINE}This is underlined${RESET}"




Shell

Related
run cmd in batch Code Example run cmd in batch Code Example
less in linux Code Example less in linux Code Example
heroku process Code Example heroku process Code Example
my numpad stopped working in ubuntu Code Example my numpad stopped working in ubuntu Code Example
How to concatenate string variables in Bash Code Example How to concatenate string variables in Bash Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10