made local really local
This commit is contained in:
@@ -152,6 +152,7 @@ _rain_engine()
|
||||
local term_area=0
|
||||
local frame_sleep="$step_duration"
|
||||
|
||||
local sigwinch
|
||||
sigwinch()
|
||||
{
|
||||
term_width=$(tput cols)
|
||||
@@ -193,11 +194,13 @@ _rain_engine()
|
||||
fi
|
||||
}
|
||||
|
||||
local do_exit
|
||||
do_exit()
|
||||
{
|
||||
exit_st=1
|
||||
}
|
||||
|
||||
local do_render
|
||||
do_render()
|
||||
{
|
||||
local idx=0 y=0 drop_color="" current_char="" render_color=""
|
||||
@@ -293,6 +296,7 @@ _rain_engine()
|
||||
# Usage: rain [OPTIONS]
|
||||
rain()
|
||||
{
|
||||
local _rain_show_usage
|
||||
_rain_show_usage()
|
||||
{
|
||||
printf "Usage: rain [OPTIONS]\n"
|
||||
@@ -389,6 +393,7 @@ export -f rain
|
||||
# Usage: matrix [OPTIONS]
|
||||
matrix()
|
||||
{
|
||||
local _matrix_show_usage
|
||||
_matrix_show_usage()
|
||||
{
|
||||
printf "Usage: matrix [OPTIONS]\n"
|
||||
|
||||
Reference in New Issue
Block a user