Class: SiSU_Screen::Ansi
- Inherits:
-
Color
- Object
- Color
- SiSU_Screen::Ansi
show all
- Defined in:
- lib/sisu/utils_screen_text_color.rb
Instance Attribute Summary collapse
Attributes inherited from Color
#black, #blue, #blue_hi, #bold, #brown, #brown_hi, #cyan, #cyan_hi, #darkgreen, #darkgrey_hi, #fuchsia, #fuchsia_hi, #green, #green_hi, #grey_hi, #invert, #lightgreen_hi, #marker, #navy, #navy_hi, #off, #orange, #orange_hi, #pink, #pink_hi, #red, #red_hi, #ruby, #underline, #white, #white_bold, #yellow, #yellow_hi
Instance Method Summary
collapse
Constructor Details
#initialize(color_state, *txt) ⇒ Ansi
Returns a new instance of Ansi.
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
|
# File 'lib/sisu/utils_screen_text_color.rb', line 66
def initialize(color_state,*txt)
@color_state,@txt=color_state,txt
@color_instruct=txt[0]
@cX=@@cX=if color_state==:on
Color.new do
self.off=self.white=self.white_bold=self.marker=self.bold=self.underline=self.invert=self.darkgrey_hi=self.grey_hi=self.pink_hi=self.fuchsia_hi=self.red_hi=self.orange_hi=self.yellow_hi=self.brown_hi=self.lightgreen_hi=self.green_hi=self.cyan_hi=self.blue_hi=self.navy_hi=self.grey=self.pink=self.fuchsia=self.ruby=self.red=self.orange=self.yellow=self.brown=self.green=self.darkgreen=self.cyan=self.blue=self.navy=self.black=''
end
else Color.new do
self.off = "\033[0m"
self.white = "\033[37m"
self.white_bold = "\033[1m"
self.marker = "\033[42m"
self.bold = "\033[1m"
self.underline = "\033[4m"
self.invert = "\033[7m"
self.darkgrey_hi = "\033[100m"
self.grey_hi = "\033[47m"
self.pink_hi = "\033[105m"
self.fuchsia_hi = "\033[45m"
self.red_hi = "\033[41m"
self.orange_hi = "\033[101m"
self.yellow_hi = "\033[103m"
self.brown_hi = "\033[43m"
self.lightgreen_hi = "\033[102m"
self.green_hi = "\033[42m"
self.cyan_hi = "\033[106m"
self.blue_hi = "\033[104m"
self.navy_hi = "\033[44m"
self.grey = "\033[90m"
self.pink = "\033[95m"
self.fuchsia = "\033[35m"
self.ruby = "\033[31m"
self.red = "\033[91m" self.orange = "\033[91m"
self.yellow = "\033[93m"
self.brown = "\033[33m"
self.green = "\033[92m"
self.darkgreen = "\033[32m"
self.cyan = "\033[36m"
self.blue = "\033[94m"
self.navy = "\033[34m"
self.black = "\033[30m"
end
end
end
|
Instance Attribute Details
#cX ⇒ Object
Returns the value of attribute cX.
65
66
67
|
# File 'lib/sisu/utils_screen_text_color.rb', line 65
def cX
@cX
end
|
Instance Method Details
#basename(sourcefilename) ⇒ Object
186
187
188
|
# File 'lib/sisu/utils_screen_text_color.rb', line 186
def basename(sourcefilename)
@basename=sourcefilename.sub(/\.(?:(?:-|ssm\.)?sst|ssm)$/,'')
end
|
#blue_tab ⇒ Object
304
305
306
|
# File 'lib/sisu/utils_screen_text_color.rb', line 304
def blue_tab
print "\t#{@cX.blue}#{@txt[0]}#{@cX.off}\n"
end
|
#blue_title_hi ⇒ Object
328
329
330
|
# File 'lib/sisu/utils_screen_text_color.rb', line 328
def blue_title_hi
puts %{#{@cX.blue_hi}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#color ⇒ Object
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
|
# File 'lib/sisu/utils_screen_text_color.rb', line 116
def color
case @color_instruct
when /invert/ then @cX.invert
when /darkgrey_hi/ then @cX.darkgrey_hi
when /grey_hi/ then @cX.grey_hi
when /pink_hi/ then @cX.pink_hi
when /fuchsia_hi/ then @cX.fuchsia_hi
when /red_hi/ then @cX.red_hi
when /orange_hi/ then @cX.orange_hi
when /yellow_hi/ then @cX.yellow_hi
when /brown_hi/ then @cX.brown_hi
when /lightgreen_hi/ then @cX.lightgreen_hi
when /green_hi/ then @cX.green_hi
when /cyan_hi/ then @cX.cyan_hi
when /blue_hi/ then @cX.blue_hi
when /navy_hi/ then @cX.navy_hi
when /white/ then @cX.white
when /grey/ then @cX.grey
when /pink/ then @cX.pink
when /fuchsia/ then @cX.fuchsia
when /ruby/ then @cX.ruby
when /red/ then @cX.red
when /orange/ then @cX.orange
when /yellow/ then @cX.yellow
when /brown/ then @cX.brown
when /green/ then @cX.green
when /darkgreen/ then @cX.darkgreen
when /cyan/ then @cX.cyan
when /blue/ then @cX.blue
when /navy/ then @cX.navy
when /close/ then @cX.off
when /off/ then @cX.off
end
end
|
#colorize ⇒ Object
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
|
# File 'lib/sisu/utils_screen_text_color.rb', line 150
def colorize
case @color_instruct
when /invert/ then puts "#{@cX.invert}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /darkgrey_hi/ then puts "#{@cX.darkgrey_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /grey_hi/ then puts "#{@cX.grey_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /pink_hi/ then puts "#{@cX.pink_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /fuchsia_hi/ then puts "#{@cX.fuchsia_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /red_hi/ then puts "#{@cX.red_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /orange_hi/ then puts "#{@cX.orange_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /yellow_hi/ then puts "#{@cX.yellow_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /brown_hi/ then puts "#{@cX.brown_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /lightgreen_hi/ then puts "#{@cX.lightgreen_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /green_hi/ then puts "#{@cX.green_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /cyan_hi/ then puts "#{@cX.cyan_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /blue_hi/ then puts "#{@cX.blue_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /navy_hi/ then puts "#{@cX.navy_hi}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off} #{@cX.grey}#{@txt[3]}#{@cX.off}"
when /bold/ then puts "#{@cX.bold}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /white/ then puts "#{@cX.off}#{@txt[1]} #{@txt[2]}"
when /grey/ then puts "#{@cX.grey}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /pink/ then puts "#{@cX.pink}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /fuchsia/ then puts "#{@cX.fuchsia}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /ruby/ then puts "#{@cX.ruby}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /red/ then puts "#{@cX.red}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /orange/ then puts "#{@cX.orange}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /yellow/ then puts "#{@cX.yellow}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /brown/ then puts "#{@cX.brown}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /green/ then puts "#{@cX.green}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /darkgreen/ then puts "#{@cX.darkgreen}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /cyan/ then puts "#{@cX.cyan}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /blue/ then puts "#{@cX.blue}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
when /navy/ then puts "#{@cX.navy}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
end
end
|
#colors ⇒ Object
112
113
114
115
|
# File 'lib/sisu/utils_screen_text_color.rb', line 112
def colors
0.upto(109) {|i| print "\033[#{i}m 33[#{i}m \033[m"}
puts ''
end
|
#cyan_hi_blue ⇒ Object
343
344
345
|
# File 'lib/sisu/utils_screen_text_color.rb', line 343
def cyan_hi_blue
puts %{#{@cX.cyan_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#cyan_title_hi ⇒ Object
340
341
342
|
# File 'lib/sisu/utils_screen_text_color.rb', line 340
def cyan_title_hi
puts %{#{@cX.cyan_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#dark_grey_title_hi ⇒ Object
337
338
339
|
# File 'lib/sisu/utils_screen_text_color.rb', line 337
def dark_grey_title_hi
puts %{#{@cX.darkgrey_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#dbi_title ⇒ Object
346
347
348
|
# File 'lib/sisu/utils_screen_text_color.rb', line 346
def dbi_title
puts %{#{@cX.blue_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.cyan}#{@cX.grey}#{@txt[1]}#{@cX.off*2} #{@cX.green}#{@txt[2]}#{@cX.off}}
end
|
#error ⇒ Object
197
198
199
|
# File 'lib/sisu/utils_screen_text_color.rb', line 197
def error
STDERR.puts "\t #{@cX.fuchsia}#{@txt[0]}#{@cX.off} #{@cX.brown}#{@txt[1]}#{@cX.off}"
end
|
#error2 ⇒ Object
200
201
202
|
# File 'lib/sisu/utils_screen_text_color.rb', line 200
def error2
STDERR.puts "\t #{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.fuchsia}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
end
|
#files_processed ⇒ Object
292
293
294
|
# File 'lib/sisu/utils_screen_text_color.rb', line 292
def files_processed
puts %{\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}}
end
|
#flow ⇒ Object
283
284
285
|
# File 'lib/sisu/utils_screen_text_color.rb', line 283
def flow
puts %{\t#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.ruby}->#{@cX.off}\n\t #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#generic ⇒ Object
289
290
291
|
# File 'lib/sisu/utils_screen_text_color.rb', line 289
def generic
puts %{\t#{@cX.navy}#{@txt[0]} #{@txt[1]}#{@cX.off}. }
end
|
#generic_number ⇒ Object
355
356
357
|
# File 'lib/sisu/utils_screen_text_color.rb', line 355
def generic_number
puts "#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}"
end
|
#green_hi_blue ⇒ Object
325
326
327
|
# File 'lib/sisu/utils_screen_text_color.rb', line 325
def green_hi_blue
puts %{#{@cX.green_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#green_title ⇒ Object
319
320
321
|
# File 'lib/sisu/utils_screen_text_color.rb', line 319
def green_title
puts %{#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}}
end
|
#green_title_hi ⇒ Object
322
323
324
|
# File 'lib/sisu/utils_screen_text_color.rb', line 322
def green_title_hi
puts %{#{@cX.green_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.grey}#{@txt[1]}#{@cX.off}}
end
|
#grey ⇒ Object
241
242
243
|
# File 'lib/sisu/utils_screen_text_color.rb', line 241
def grey
puts "#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.cyan}#{@txt[1]}#{@cX.off}"
end
|
#grey_open ⇒ Object
274
275
276
|
# File 'lib/sisu/utils_screen_text_color.rb', line 274
def grey_open
print @cX.grey
end
|
#grey_tab ⇒ Object
316
317
318
|
# File 'lib/sisu/utils_screen_text_color.rb', line 316
def grey_tab
print "\t#{@cX.grey}#{@txt[0]}#{@cX.off}\n"
end
|
#grey_title_grey_blue ⇒ Object
334
335
336
|
# File 'lib/sisu/utils_screen_text_color.rb', line 334
def grey_title_grey_blue
puts %{#{@cX.grey_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.grey}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off}}
end
|
#grey_title_hi ⇒ Object
331
332
333
|
# File 'lib/sisu/utils_screen_text_color.rb', line 331
def grey_title_hi
puts %{#{@cX.grey_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#html0_numbers ⇒ Object
234
235
236
237
238
239
240
|
# File 'lib/sisu/utils_screen_text_color.rb', line 234
def html0_numbers
puts %{\t#{@cX.ruby}#{@txt[0]} files processed#{@cX.off}. } +
%{#{@cX.grey}} +
%{scroll only: #{@txt[1]}, seg only: #{@txt[2]}, joint scroll & seg: #{@txt[3]},} +
%{#{@cX.off} } +
%{#{@cX.cyan}nav only: #{@txt[4]}#{@cX.off}.}
end
|
#html1numbers ⇒ Object
226
227
228
229
230
231
232
233
|
# File 'lib/sisu/utils_screen_text_color.rb', line 226
def html1numbers
puts %{\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.cyan}files processed#{@cX.off}. } +
%{#{@cX.cyan}scroll only: #{@txt[1]},#{@cX.off}} +
%{#{@cX.grey} } +
%{seg only: #{@txt[2]}, } +
%{joint scroll & seg: #{@txt[3]}, nav only: #{@n_files_nav}} +
%{#{@cX.off}}
end
|
#html2numbers ⇒ Object
216
217
218
219
220
221
222
223
224
225
|
# File 'lib/sisu/utils_screen_text_color.rb', line 216
def html2numbers
puts %{\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.cyan}files processed#{@cX.off}. } +
%{#{@cX.grey}} +
%{scroll only: #{@txt[1]},} +
%{#{@cX.off} } +
%{#{@cX.cyan}seg only: #{@txt[2]},#{@cX.off}} +
%{#{@cX.grey} } +
%{joint scroll & seg: #{@txt[3]}, nav only: #{@n_files_nav}} +
%{#{@cX.off}}
end
|
#html3numbers ⇒ Object
206
207
208
209
210
211
212
213
214
215
|
# File 'lib/sisu/utils_screen_text_color.rb', line 206
def html3numbers
puts %{\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.cyan}files processed#{@cX.off}. } +
%{#{@cX.grey}} +
%{scroll only: #{@txt[1]}, seg only: #{@txt[2]},} +
%{#{@cX.off} } +
%{#{@cX.cyan}joint scroll & seg: #{@txt[3]},#{@cX.off}} +
%{#{@cX.grey} } +
%{nav only: #{@txt[4]}} +
%{#{@cX.off}}
end
|
#html_output ⇒ Object
392
393
394
|
# File 'lib/sisu/utils_screen_text_color.rb', line 392
def html_output
puts %{\t#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.ruby}->#{@cX.off}\n\t #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#html_title ⇒ Object
389
390
391
|
# File 'lib/sisu/utils_screen_text_color.rb', line 389
def html_title
puts %{#{@cX.green_hi}#{@cX.black}HTML#{@cX.off*2}}
end
|
#instruct ⇒ Object
271
272
273
|
# File 'lib/sisu/utils_screen_text_color.rb', line 271
def instruct
puts %{\t #{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.cyan}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off} #{@cX.cyan}#{@txt[3]}#{@cX.off} #{@cX.grey}#{@txt[4]}#{@cX.off} "#{@cX.brown}#{@f}#{@cX.off}"}
end
|
#lout_numbers ⇒ Object
364
365
366
|
# File 'lib/sisu/utils_screen_text_color.rb', line 364
def lout_numbers
puts %{ #{@cX.green}#{@n_lout}#{@cX.off} #{@cX.cyan}lout/pdf files processed#{@cX.off}.}
end
|
#maintenance ⇒ Object
268
269
270
|
# File 'lib/sisu/utils_screen_text_color.rb', line 268
def maintenance
puts "\t#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.brown}#{@txt[1]}#{@cX.off} #{@cX.grey}#{@txt[2]}#{@cX.off}"
end
|
380
381
382
|
# File 'lib/sisu/utils_screen_text_color.rb', line 380
def meta_verse
puts "\t#{@cX.grey}MetaVerse#{@cX.off}"
end
|
386
387
388
|
# File 'lib/sisu/utils_screen_text_color.rb', line 386
def meta_verse_load
puts %{\t<<MetaVerse: MarshalLoad>>}
end
|
383
384
385
|
# File 'lib/sisu/utils_screen_text_color.rb', line 383
def meta_verse_skipped
puts %{\t#{@cX.grey}MetaVerse: MarshalLoad (creation of metaVerse skipped)#{@cX.off}}
end
|
372
373
374
|
# File 'lib/sisu/utils_screen_text_color.rb', line 372
def meta_verse_title
puts %{#{@cX.green_hi}#{@cX.black}MetaVerse#{@cX.off*2} }
end
|
375
376
377
378
379
|
# File 'lib/sisu/utils_screen_text_color.rb', line 375
def meta_verse_title_v
b=sourcename(@txt[0])
puts %{#{@cX.green_hi}#{@cX.black}MetaVerse#{@cX.off*2} } +
%{#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.ruby}->#{@cX.off}\n\t #{@cX.blue}~meta/#{b}.meta#{@cX.off}}
end
|
#output ⇒ Object
286
287
288
|
# File 'lib/sisu/utils_screen_text_color.rb', line 286
def output
puts %{\t#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.ruby}->#{@cX.off}\n\t #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|
#p_close ⇒ Object
280
281
282
|
# File 'lib/sisu/utils_screen_text_color.rb', line 280
def p_close
print @cX.off
end
|
#p_off ⇒ Object
277
278
279
|
# File 'lib/sisu/utils_screen_text_color.rb', line 277
def p_off
print @cX.off
end
|
#parameters ⇒ Object
367
368
|
# File 'lib/sisu/utils_screen_text_color.rb', line 367
def parameters
end
|
#print_blue ⇒ Object
295
296
297
|
# File 'lib/sisu/utils_screen_text_color.rb', line 295
def print_blue
print "#{@cX.blue}#{@txt[0]} #{@txt[1]}#{@cX.off}"
end
|
#print_brown ⇒ Object
301
302
303
|
# File 'lib/sisu/utils_screen_text_color.rb', line 301
def print_brown
print "#{@cX.brown}#{@txt[0]}#{@cX.off}"
end
|
#print_grey ⇒ Object
307
308
309
|
# File 'lib/sisu/utils_screen_text_color.rb', line 307
def print_grey
print "#{@cX.grey}#{@txt[0]} #{@txt[1]}#{@cX.off}"
end
|
#puts_blue ⇒ Object
298
299
300
|
# File 'lib/sisu/utils_screen_text_color.rb', line 298
def puts_blue
puts "#{@cX.blue}#{@txt[0]} #{@txt[1]}#{@cX.off}"
end
|
#puts_brown ⇒ Object
313
314
315
|
# File 'lib/sisu/utils_screen_text_color.rb', line 313
def puts_brown
puts "#{@cX.brown}#{@txt[0]} #{@txt[1]}#{@cX.off}"
end
|
#puts_grey ⇒ Object
310
311
312
|
# File 'lib/sisu/utils_screen_text_color.rb', line 310
def puts_grey
puts "#{@cX.grey}#{@txt[0]} #{@txt[1]}#{@cX.off}"
end
|
#rescue ⇒ Object
191
192
193
|
# File 'lib/sisu/utils_screen_text_color.rb', line 191
def rescue
STDERR.puts %{\t #{@cX.orange}Rescued#{@cX.off} #{@cX.grey}#{yield if block_given?}\n\t An#{@cX.off} #{@cX.fuchsia}ERROR#{@cX.off} #{@cX.grey}occurred, message:#{@cX.off} #{@cX.fuchsia}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off} #{@cX.brown}#{@txt[2]}#{@cX.off}}
end
|
#reserved ⇒ Object
369
370
371
|
# File 'lib/sisu/utils_screen_text_color.rb', line 369
def reserved
puts %{ #{@cX.grey_hi}#{@cX.black}reserved#{@cX.off*2}}
end
|
#result ⇒ Object
265
266
267
|
# File 'lib/sisu/utils_screen_text_color.rb', line 265
def result
puts "\t#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.green}#{@txt[1]}#{@cX.off} #{@cX.blue}#{@txt[2]}#{@cX.off}"
end
|
#segmented ⇒ Object
395
396
397
|
# File 'lib/sisu/utils_screen_text_color.rb', line 395
def segmented
puts "\t#{@cX.grey}Seg#{@cX.off} #{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.grey}segments#{@cX.off}"
end
|
#sisu ⇒ Object
189
190
|
# File 'lib/sisu/utils_screen_text_color.rb', line 189
def sisu
end
|
#sourcename(sourcefilename) ⇒ Object
183
184
185
|
# File 'lib/sisu/utils_screen_text_color.rb', line 183
def sourcename(sourcefilename)
@sourcefilename=sourcefilename
end
|
#term_sheet_title ⇒ Object
352
353
354
|
# File 'lib/sisu/utils_screen_text_color.rb', line 352
def term_sheet_title
puts %{\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.red_hi}#{@cX.black}#{@txt[1]}.#{@cX.off*2} }
end
|
#tex_info_numbers ⇒ Object
361
362
363
|
# File 'lib/sisu/utils_screen_text_color.rb', line 361
def tex_info_numbers
puts %{ #{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.cyan}texinfo files processed#{@cX.off}.}
end
|
#tex_numbers ⇒ Object
358
359
360
|
# File 'lib/sisu/utils_screen_text_color.rb', line 358
def tex_numbers
puts %{ #{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.cyan}tex/pdf files processed#{@cX.off}.}
end
|
#txt_blue ⇒ Object
253
254
255
|
# File 'lib/sisu/utils_screen_text_color.rb', line 253
def txt_blue
puts "\t#{@cX.blue}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}"
end
|
#txt_cyan ⇒ Object
250
251
252
|
# File 'lib/sisu/utils_screen_text_color.rb', line 250
def txt_cyan
puts "\t#{@cX.cyan}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}"
end
|
#txt_green ⇒ Object
259
260
261
|
# File 'lib/sisu/utils_screen_text_color.rb', line 259
def txt_green
puts "\t#{@cX.green}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}"
end
|
#txt_grey ⇒ Object
247
248
249
|
# File 'lib/sisu/utils_screen_text_color.rb', line 247
def txt_grey
puts "\t#{@cX.grey}#{@txt[0]}#{@cX.off} #{@cX.cyan}#{@txt[1]}#{@cX.off}"
end
|
#txt_red ⇒ Object
256
257
258
|
# File 'lib/sisu/utils_screen_text_color.rb', line 256
def txt_red
puts "\t#{@cX.red}#{@txt[0]}#{@cX.off} #{@cX.cyan}#{@txt[1]}#{@cX.off}"
end
|
#txt_white ⇒ Object
244
245
246
|
# File 'lib/sisu/utils_screen_text_color.rb', line 244
def txt_white
puts "\t#{@cX.white}#{@txt[0]}#{@cX.off} #{@cX.white}#{@txt[1]}#{@cX.off}"
end
|
#url ⇒ Object
262
263
264
|
# File 'lib/sisu/utils_screen_text_color.rb', line 262
def url blue
end
|
#version ⇒ Object
203
204
205
|
# File 'lib/sisu/utils_screen_text_color.rb', line 203
def version
puts "#{@cX.blue_hi}#{@txt[0]} #{@txt[1]}#{@cX.off} #{@cX.grey} (#{@txt[3]} [#{@txt[2]}])#{@txt[4]} &#{@cX.off} #{@cX.ruby}Ruby#{@cX.off} #{@cX.grey}(#{@txt[5]})#{@cX.off}\n"
end
|
#warn ⇒ Object
194
195
196
|
# File 'lib/sisu/utils_screen_text_color.rb', line 194
def warn
STDERR.puts "\t #{@cX.brown}#{@txt[0]}#{@cX.off} #{@cX.grey}#{@txt[1]}#{@cX.off}"
end
|
#yellow_title_hi ⇒ Object
349
350
351
|
# File 'lib/sisu/utils_screen_text_color.rb', line 349
def yellow_title_hi
puts %{#{@cX.yellow_hi}#{@cX.black}#{@txt[0]}#{@cX.off*2} #{@cX.blue}#{@txt[1]}#{@cX.off}}
end
|