Skip to content

Instantly share code, notes, and snippets.

@josephworks
Created August 6, 2019 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephworks/f3b28584bb537c5e9e0d6df2420b729a to your computer and use it in GitHub Desktop.
Save josephworks/f3b28584bb537c5e9e0d6df2420b729a to your computer and use it in GitHub Desktop.
#!/bin/bash
# clear the screen
tput clear
# Move cursor to screen location X,Y (top left is 0,0)
tput cup 3 15
# Set a foreground colour using ANSI escape
tput setaf 3
echo "XYX Corp LTD."
tput sgr0
tput cup 5 17
# Set reverse video mode
tput rev
echo "M A I N - M E N U"
tput sgr0
tput cup 7 15
echo "1. User Management"
tput cup 8 15
echo "2. Service Management"
tput cup 9 15
echo "3. Process Management"
tput cup 10 15
echo "4. Backup"
# Set bold mode
tput bold
tput cup 12 15
read -p "Enter your choice [1-4] " choice
tput clear
tput sgr0
tput rc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment