From 5ed0f44d33db6ad182f7cc3e0e0c9c51a321dd5c Mon Sep 17 00:00:00 2001 From: hut Date: Fri, 12 Jun 2009 19:23:18 +0200 Subject: removed deprecated cli methods --- code/cli.rb | 53 ----------------------------------------------------- 1 file changed, 53 deletions(-) diff --git a/code/cli.rb b/code/cli.rb index c982d0bd..3ef38237 100644 --- a/code/cli.rb +++ b/code/cli.rb @@ -19,9 +19,6 @@ module CLI '' when ?\e '' -# keep spaces as they are, makes more sense -# when ?\s -# '' when Ncurses::KEY_BTAB '' when 9 @@ -125,40 +122,6 @@ module CLI Ncurses.mvchgat(y, x, len, attr, get_color(fg, bg), nil) end -# def color(fg = -1, bg = -1) -# if OPTIONS['color'] -# Ncurses.color_set(get_color(fg,bg), nil) -# end -# end -# -# def color_at y, x=0, len=-1, fg=-1, bg=-1, attributes=0 -# if OPTIONS['color'] -# if y < 0 then y += Ncurses.LINES end -# Ncurses.mvchgat(y, x, len, attributes, get_color(fg, bg), nil) -# end -# end -# -# def color_bold_at y, x=0, len=-1, fg=-1, bg=-1 -# color_at(y, x, len, fg, bg, attributes = Ncurses::A_BOLD) -# end -# -# def color_reverse_bold_at y, x=0, len=-1, fg=-1, bg=-1 -# if OPTIONS['color'] -# color_at(y, x, len, fg, bg, Ncurses::A_REVERSE | Ncurses::A_BOLD) -# else -# Ncurses.mvchgat(y, x, len, Ncurses::A_REVERSE | Ncurses::A_BOLD, 0, nil) -# end -# end -# alias color_bold_reverse_at color_reverse_bold_at -# -# def color_reverse_at y, x=0, len=-1, fg=-1, bg=-1 -# if OPTIONS['color'] -# color_at(y, x, len, fg, bg, Ncurses::A_REVERSE) -# else -# Ncurses.mvchgat(y, x, len, Ncurses::A_REVERSE, 0, nil) -# end -# end - def get_color(fg, bg) n = bg+2 + 9*(fg+2) color = @@colortable[n] @@ -170,20 +133,4 @@ module CLI end return color end -# -# def bold(b = true) -# if b -# Ncurses.attron(Ncurses::A_BOLD) -# else -# Ncurses.attroff(Ncurses::A_BOLD) -# end -# end -# -# def reverse(b = true) -# if b -# Ncurses.attron(Ncurses::A_REVERSE) -# else -# Ncurses.attroff(Ncurses::A_REVERSE) -# end -# end end -- cgit 1.4.1-2-gfad0