Top Level Namespace
Defined Under Namespace
Modules: Kernel, RubyText
Constant Summary
collapse
- X =
Curses
Instance Method Summary
collapse
Instance Method Details
#debug(*args) ⇒ Object
8
9
10
11
|
# File 'lib/rubytext.rb', line 8
def debug(*args)
return unless $debug
$debug.puts *args
end
|
#fb2cp(fg, bg) ⇒ Object
13
14
15
16
17
18
19
20
|
# File 'lib/rubytext.rb', line 13
def fb2cp(fg, bg)
fg ||= :blue
bg ||= :white
fg = X.const_get("COLOR_#{fg.upcase}")
bg = X.const_get("COLOR_#{bg.upcase}")
cp = $ColorPairs[[fg, bg]]
[fg, bg, cp]
end
|