Gebruikershulpmiddelen

Site-hulpmiddelen


li_bash-scripting-curpos

Verschillen

Dit geeft de verschillen weer tussen de geselecteerde revisie en de huidige revisie van de pagina.

Link naar deze vergelijking

Beide kanten vorige revisie Vorige revisie
Volgende revisie
Vorige revisie
li_bash-scripting-curpos [2014/09/03 11:53]
pvi
— (huidige)
Regel 1: Regel 1:
-An example script taken from [[http://​www.cyberciti.biz/​tips/​spice-up-your-unix-linux-shell-scripts.html| www.cyberciti.biz/​tips/​spice-up-your-unix-linux-shell-scripts]] 
  
-  #!/bin/bash 
-  ​ 
-  tput clear      # clear the screen 
-  ​ 
-  tput cup 3 15   # Move cursor to screen location X,Y (top left is 0,0) 
-  ​ 
-  tput setaf 3    # Set a foreground colour using ANSI escape 
-  echo "XYX Corp LTD." 
-  tput sgr0 
-  ​ 
-  tput cup 5 17 
-  tput rev        # Set reverse video mode 
-  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"​ 
-  ​ 
-  tput bold       # Set bold mode  
-  tput cup 12 15 
-  read -p "Enter your choice [1-4] " choice 
-  ​ 
-  tput clear 
-  tput sgr0 
-  tput rc 
- 
- 
-  ​ 
li_bash-scripting-curpos.1409738002.txt.gz ยท Laatst gewijzigd: 2019/07/24 18:14 (Externe bewerking)