3 prompt
="Enter password:"
7 # Strip ANSI color codes
8 prompt
=$
(echo "$prompt" |
sed -e 's/\x1b[^m]*m//g')
11 if type zenity
>/dev
/null
2>&1
13 zenity
--title "sudo" --entry --text "$prompt" --entry-text '' --hide-text
15 Xdialog
--stdout --title "sudo" --passwordbox "$prompt" 0 0