]> gitweb.fluxo.info Git - keyringer.git/commitdiff
Minor UI enhancements at open/edit actions
authorSilvio Rhatto <rhatto@riseup.net>
Fri, 16 May 2014 18:48:04 +0000 (15:48 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Fri, 16 May 2014 18:48:04 +0000 (15:48 -0300)
lib/keyringer/actions/edit

index 63017d56605263852e2a485f22946207e3fae1ec..3ccf97745139fe880c06705744c3789daf2aea9f 100755 (executable)
@@ -39,7 +39,8 @@ fi
 # Prompt
 echo "Press any key to open the decrypted data with $APP, Ctrl-C to abort"
 echo "WARNING: please make sure that $APP doesn't leak data to external applications or files"
-read key
+echo "Press ENTER to continue"
+read -s key
 $APP "$TMPWORK"
 
 # Wait for background process to finish
@@ -53,7 +54,7 @@ wait
 # of the unencrypted file in the application, which can lead to information leakage if the user
 # saves the file and leaves the editor.
 echo "Press any key when done using the file and you're sure that $APP is closed."
-read -n 1
+read -s -n 1
 
 # Encrypt again
 export KEYRINGER_ADD_EXTENSION=false