-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
51 lines (35 loc) · 1.07 KB
/
Copy pathREADME.txt
File metadata and controls
51 lines (35 loc) · 1.07 KB
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
Function: show_progress
Simple bash script that displys current progress in a script, through a progress bar and displays percentage of task completed completed.
Inputs:
1 - Current_Task
2 - Total_Tasks
3 - Done_Symbol
4 - Todo_Symbol
Example usage:
show_progress 1 5 / _
sleep 2
show_progress 2 5 / _
sleep 2
show_progress 3 5 / _
sleep 2
show_progress 4 5 / _
sleep 2
show_progress 5 5 / _
Example Outputs:
Progress : [/////////////////////////////////////////////////_____________________________]60%
Progress : [//////////////////////////////////////////////////////////////////////////////]100%
Function: set_scroll
set the region of the terminal that will scroll and were shall be static / seperate
Inputs:
1 - End_Rows (How many rows to leave at the ned of the scroll region)
Example usage:
set_scroll 2
Example Output: (Note the spacing of the final line and the bash input)
bash$
[////////////////////////////////////////////////////]100%
Function: move_cursor_line
move the cursor to a specific terinal row
Inputs:
1 - Line_To_Move_To
Example usage:
move_cursor_line 1