@@ -28,12 +28,25 @@ def set_range(app, custom_range):
28
28
app .print ("A_BOLD" , x = 44 , y = 1 , panel = "layout.1" )
29
29
app .print ("A_ITALIC" , x = 66 , y = 1 , panel = "layout.1" )
30
30
app .print ("A_DIM" , x = 1 , y = 20 , panel = "layout.1" )
31
+ app .print ("A_UNDERLINE" , x = 22 , y = 20 , panel = "layout.1" )
32
+ app .print ("A_BLINK" , x = 44 , y = 20 , panel = "layout.1" )
33
+ app .print ("A_INVIS" , x = 66 , y = 20 , panel = "layout.1" )
31
34
for j in range (custom_range [0 ], custom_range [1 ]):
32
35
app .print (f"{ color_names [j ]} " , x = 1 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" )
33
- app .print (f"{ color_names [j ]} " , x = 22 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" , A_REVERSE = True )
34
- app .print (f"{ color_names [j ]} " , x = 44 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" , A_BOLD = True )
35
- app .print (f"{ color_names [j ]} " , x = 66 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" , A_ITALIC = True )
36
- app .print (f"{ color_names [j ]} " , x = 1 , y = app .cursor_y + 21 , color = color_names [j ], panel = "layout.1" , A_DIM = True )
36
+ app .print (f"{ color_names [j ]} " , x = 22 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" ,
37
+ A_REVERSE = True )
38
+ app .print (f"{ color_names [j ]} " , x = 44 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" ,
39
+ A_BOLD = True )
40
+ app .print (f"{ color_names [j ]} " , x = 66 , y = app .cursor_y + 2 , color = color_names [j ], panel = "layout.1" ,
41
+ A_ITALIC = True )
42
+ app .print (f"{ color_names [j ]} " , x = 1 , y = app .cursor_y + 21 , color = color_names [j ], panel = "layout.1" ,
43
+ A_DIM = True )
44
+ app .print (f"{ color_names [j ]} " , x = 22 , y = app .cursor_y + 21 , color = color_names [j ], panel = "layout.1" ,
45
+ A_UNDERLINE = True )
46
+ app .print (f"{ color_names [j ]} " , x = 44 , y = app .cursor_y + 21 , color = color_names [j ], panel = "layout.1" ,
47
+ A_BLINK = True )
48
+ app .print (f"{ color_names [j ]} " , x = 66 , y = app .cursor_y + 21 , color = color_names [j ], panel = "layout.1" ,
49
+ A_INVIS = True )
37
50
app .cursor_y += 1
38
51
39
52
@@ -126,21 +139,6 @@ def dashport(stdscr):
126
139
app .selected_background = "default"
127
140
app .add_control ("KEY_DOWN" , next_background )
128
141
app .add_control ("KEY_UP" , prev_background )
129
- app .add_control ("A" , default_range , case_sensitive = False )
130
- app .add_control ("B" , white_range , case_sensitive = False )
131
- app .add_control ("C" , black_range , case_sensitive = False )
132
- app .add_control ("D" , silver_range , case_sensitive = False )
133
- app .add_control ("E" , grey_range , case_sensitive = False )
134
- app .add_control ("F" , red_range , case_sensitive = False )
135
- app .add_control ("G" , lime_range , case_sensitive = False )
136
- app .add_control ("H" , yellow_range , case_sensitive = False )
137
- app .add_control ("I" , blue_range , case_sensitive = False )
138
- app .add_control ("J" , fuchsia_range , case_sensitive = False )
139
- app .add_control ("K" , aqua_range , case_sensitive = False )
140
- app .add_control ("L" , maroon_range , case_sensitive = False )
141
- app .add_control ("M" , green_range , case_sensitive = False )
142
- app .add_control ("N" , navy_range , case_sensitive = False )
143
- app .add_control ("O" , purple_range , case_sensitive = False )
144
142
while True :
145
143
globals ()["{}_range" .format (app .selected_background )](app )
146
144
app .refresh ()
0 commit comments