mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-03-12 00:11:31 +00:00
~Improve UI
This commit is contained in:
@@ -27,11 +27,10 @@ settings() {
|
||||
content_line "6) $SET_MENU_ADV_PORT"
|
||||
}
|
||||
content_line "8) $SET_MENU_IPV6\t\033[36m$ipv6_redir\033[0m"
|
||||
content_line ""
|
||||
separator_line "-"
|
||||
content_line "a) \033[31m$SET_MENU_RESET\033[0m"
|
||||
content_line "b) \033[36m$SET_MENU_LANG\033[0m"
|
||||
content_line "c) \033[33m$SET_MENU_UI\033[0m"
|
||||
content_line ""
|
||||
content_line "0) $COMMON_BACK"
|
||||
separator_line "="
|
||||
read -r -p "$COMMON_INPUT> " num
|
||||
|
||||
@@ -113,7 +113,11 @@ content_line() {
|
||||
END {}
|
||||
'
|
||||
}
|
||||
|
||||
# function for right side text
|
||||
# color sould be disabled
|
||||
content_right() {
|
||||
content_line "$(printf "%$((${TABLE_WIDTH:-60} - 3))s" "$1")"
|
||||
}
|
||||
# function to print sub content lines
|
||||
# for printing accompanying instructions
|
||||
sub_content_line() {
|
||||
|
||||
@@ -1,8 +1,13 @@
|
||||
|
||||
TABLE_WIDTH=60
|
||||
|
||||
content_line() {
|
||||
printf '%b' " $1\n"
|
||||
}
|
||||
|
||||
content_right() {
|
||||
printf "%$((TABLE_WIDTH - 13))s\n" "$1"
|
||||
}
|
||||
sub_content_line() {
|
||||
content_line " $1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user