-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun
executable file
·71 lines (55 loc) · 1.1 KB
/
run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/bash
## ⚠️ TEST ZONE ⚠️
# function tui::reset()
# {
# stty "${TUI_OLD_TERM}"
# trap - SIGINT exit
# return
# }
# function tui::init()
# {
# declare -g TUI_CUR_TERM=$(tty)
# declare -g TUI_OLD_TERM=$(stty -g)
# declare -g TUI_COL=$(tput cols)
# declare -g TUI_ROW=$(tput lines)
# stty -icanon -echo
# trap "tui::reset" SIGINT exit
# }
# function create::task()
# {
# true
# }
# function test::entry()
# {
# tui::init
# printf "test\n" &
# printf "test\n" &
# tui::reset
# }
function test::clock()
{
local x y
local cur_tty="${1:-$(tty)}"
local path_cur_pos="/run/"
while [ : ]; do
printf "x: %d | y: %d\n" "${CUR_POS_X}" "${CUR_POS_Y}"
sleep 1
done
}
function test::entry()
{
test::clock "$(tty)" &
trap "kill $!" 2
wait $!
}
## ⚠️ END TEST ZONE ⚠️
source ./.config
# parse::entry ${@}
# test::entry
# utils::update_repo "[email protected]:Pixailz/lib_bash" "./"
# utils::update_repo "https://github.com/Pixailz/lib_bash" "./"
# ansi::get_cursor_pos
# printf "X_POS : %s\n" "${CUR_POS_X}"
# printf "Y_POS : %s\n" "${CUR_POS_Y}"
pkg::install "vim"
pkg::update "vim"