Archived
1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
cli-old/lib/style.rb
2017-07-22 09:10:33 +00:00

18 lines
794 B
Ruby

# frozen_string_literal: true
class Style
def self.counter
@counter ||= 0
@counter += 1
end
def initialize
Curses.init_pair self.class.counter, Curses::COLOR_WHITE, Curses::COLOR_BLACK # text
Curses.init_pair self.class.counter, Curses::COLOR_BLACK, Curses::COLOR_WHITE # selection
Curses.init_pair self.class.counter, Curses::COLOR_WHITE, Curses::COLOR_BLACK # editing text
Curses.init_pair self.class.counter, Curses::COLOR_BLACK, Curses::COLOR_GREEN # cursor
Curses.init_pair self.class.counter, Curses::COLOR_BLACK, Curses::COLOR_CYAN # menu item
Curses.init_pair self.class.counter, Curses::COLOR_CYAN, Curses::COLOR_BLACK # message time
Curses.init_pair self.class.counter, Curses::COLOR_GREEN, Curses::COLOR_BLACK # message author
end
end