Przeglądaj źródła

please wait sign

Bob Mottram 7 lat temu
rodzic
commit
84f33bc946
1 zmienionych plików z 15 dodań i 0 usunięć
  1. 15
    0
      src/freedombone-controlpanel

+ 15
- 0
src/freedombone-controlpanel Wyświetl plik

@@ -33,6 +33,20 @@ PROJECT_NAME='freedombone'
33 33
 export TEXTDOMAIN=${PROJECT_NAME}-controlpanel
34 34
 export TEXTDOMAINDIR="/usr/share/locale"
35 35
 
36
+function please_wait {
37
+        local str width height length
38
+
39
+        width=$(tput cols)
40
+        height=$(tput lines)
41
+        str="Please wait"
42
+        length=${#str}
43
+        clear
44
+        tput cup $((height / 2)) $(((width / 2) - (length / 2)))
45
+        echo "$str"
46
+}
47
+
48
+please_wait
49
+
36 50
 UTILS_FILES=/usr/share/${PROJECT_NAME}/utils/${PROJECT_NAME}-utils-*
37 51
 for f in $UTILS_FILES
38 52
 do
@@ -2110,6 +2124,7 @@ function menu_top_level {
2110 2124
             1) exit 1;;
2111 2125
             255) exit 1;;
2112 2126
         esac
2127
+        please_wait
2113 2128
         case $(cat $data) in
2114 2129
             1) show_about;;
2115 2130
             2) view_or_change_passwords;;