removed legacy set-boxtype()
This commit is contained in:
parent
9be8761ab8
commit
ff843c2e17
1 changed files with 1 additions and 13 deletions
14
functions
14
functions
|
|
@ -2,7 +2,7 @@
|
||||||
# pyr0ball script functions library
|
# pyr0ball script functions library
|
||||||
|
|
||||||
# Initial Vars
|
# Initial Vars
|
||||||
functionsrev=2.1.1
|
functionsrev=2.1.2
|
||||||
#scriptname="${BASH_SOURCE[0]##*/}"
|
#scriptname="${BASH_SOURCE[0]##*/}"
|
||||||
#rundir="${BASH_SOURCE[0]%/*}"
|
#rundir="${BASH_SOURCE[0]%/*}"
|
||||||
#runuser="$(whoami)"
|
#runuser="$(whoami)"
|
||||||
|
|
@ -168,7 +168,6 @@ update_terminal_width() {
|
||||||
|
|
||||||
# Set box width with 1 character margin
|
# Set box width with 1 character margin
|
||||||
BOXWIDTH=$((terminal_width - 1))
|
BOXWIDTH=$((terminal_width - 1))
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Add trap for terminal resize
|
# Add trap for terminal resize
|
||||||
|
|
@ -281,17 +280,6 @@ set-boxtype() {
|
||||||
set_borders "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "-"
|
set_borders "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "$borderchar" "-"
|
||||||
}
|
}
|
||||||
|
|
||||||
set-boxtype(){
|
|
||||||
case $boxtype in
|
|
||||||
norm) box-norm ;;
|
|
||||||
double) box-double ;;
|
|
||||||
heavy) box-heavy ;;
|
|
||||||
light) box-light ;;
|
|
||||||
rounded) box-rounded ;;
|
|
||||||
char) box-singlechar ;;
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|
||||||
format_boxborder() {
|
format_boxborder() {
|
||||||
local alignment="left"
|
local alignment="left"
|
||||||
local box_type="norm"
|
local box_type="norm"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue