SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. INPUT=""
  2.  
  3. input() {
  4.     read -n 1 -p ":" INPUT
  5. }
  6.  
  7. console() {
  8.     if [[ $INPUT == "1" ]]; then
  9.         hideMenu
  10.         menu1
  11.     elif [[ $INPUT == "2" ]]; then
  12.         hideMenu
  13.         menu2
  14.     elif [[ $INPUT == "3" ]]; then
  15.         hideMenu
  16.         menu3
  17.     elif [[ $INPUT == "menu" ]]; then
  18.         showMenu
  19.     elif [[ $INPUT == "q" ]]; then
  20.         quit
  21.     fi
  22. }
  23.      
  24. J_INPUT=""
  25.  
  26. j_input() {
  27.     read -n 1 -p ":" J_INPUT
  28. }
  29.  
  30. console() {
  31.     if [ $J_INPUT = "l"]; then
  32.         CURR_PAGE=$((CURR_PAGE + 1))
  33.     elif [ $J_INPUT = "j"]; then
  34.         CURR_PAGE=$((CURR_PAGE - 1))
  35.     elif [ $J_INPUT = "asd"]; then
  36.         CURR_PAGE=$((CURR_PAGE + 1))
  37.     fi
  38. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top