2303.3 Don't like the colours
This commit is contained in:
@@ -367,9 +367,7 @@ shell_access() {
|
||||
echo ""
|
||||
echo " Access granted. Type 'exit' to return to the menu."
|
||||
echo ""
|
||||
reset_colors
|
||||
bash
|
||||
set_colors
|
||||
return
|
||||
else
|
||||
echo " Incorrect password.$( (( attempts > 0 )) && echo " $attempts attempt(s) remaining." || echo "" )"
|
||||
@@ -419,20 +417,6 @@ main_menu() {
|
||||
done
|
||||
}
|
||||
|
||||
# ── terminal colors ───────────────────────────────────────────────────────────
|
||||
|
||||
# Dark blue background (4), yellow text (3)
|
||||
set_colors() {
|
||||
tput setab 4
|
||||
tput setaf 3
|
||||
tput clear
|
||||
}
|
||||
|
||||
reset_colors() {
|
||||
tput sgr0
|
||||
tput clear
|
||||
}
|
||||
|
||||
# ── entry point ───────────────────────────────────────────────────────────────
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
@@ -440,8 +424,4 @@ if [ "$EUID" -ne 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
trap 'reset_colors; exit 0' EXIT
|
||||
trap 'reset_colors; exit 130' INT
|
||||
|
||||
set_colors
|
||||
main_menu
|
||||
|
||||
Reference in New Issue
Block a user