-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.sh
More file actions
executable file
·40 lines (29 loc) · 923 Bytes
/
styles.sh
File metadata and controls
executable file
·40 lines (29 loc) · 923 Bytes
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
source ../src/lib.sh
init_screen
layout.create_from_screen Layout
layout.v_split Layout vbox1 vbox2
layout.h_split vbox1 hbox1 hbox2
layout.h_split vbox2 hbox3 hbox4
rect.new blue_rect
rect.new red_rect
rect.new green_rect
rect.new purple_rect
rect.set_style blue_rect bg_color="0;0;255" fg_color="0;0;0"
rect.set_style red_rect bg_color="255;0;0"
rect.set_style green_rect bg_color="0;255;0"
rect.set_style purple_rect bg_color="255;0;225" fg_color="0;0;0"
rect.set_title blue_rect "blue rect"
rect.set_title red_rect "red rect"
rect.set_title green_rect "green rect"
rect.set_title purple_rect "purple rect"
rect.set_title_style blue_rect reversed
rect.set_title_style red_rect crossed
rect.set_title_style green_rect underlined
rect.set_title_style purple_rect blink
rect.draw blue_rect hbox1
rect.draw red_rect hbox2
rect.draw green_rect hbox3
rect.draw purple_rect hbox4
buffer.flush
sleep 10
exit_screen