Module: Megingiard
- Defined in:
- lib/megingiard.rb,
lib/megingiard/node.rb,
lib/megingiard/emojis.rb,
lib/megingiard/version.rb,
lib/megingiard/bold_node.rb,
lib/megingiard/color_node.rb,
lib/megingiard/emoji_node.rb,
lib/megingiard/ansi_colors.rb,
lib/megingiard/hash_wrapper.rb,
lib/megingiard/bold_sequence.rb,
lib/megingiard/centered_node.rb,
lib/megingiard/reset_sequence.rb,
lib/megingiard/terminal_width.rb,
lib/megingiard/centered_canvas.rb,
lib/megingiard/text_color_sequence.rb,
lib/megingiard/ansi_escape_sequence.rb,
lib/megingiard/ansi_escape_code_validator.rb
Defined Under Namespace
Classes: AnsiEscapeCodeValidator, AnsiEscapeSequence, BoldNode, CenteredCanvas, CenteredNode, ColorNode, EmojiNode, HashWrapper, InvalidAnsiColorCode, InvalidAnsiEscapeCode, InvalidEmojiName, Node, TextColorSequence
Constant Summary collapse
- EMOJIS =
Name to Emoji Wrapper
HashWrapper.new(Utf8Emoji.emojis, InvalidEmojiName)
- VERSION =
'0.1.0'
- ANSI_COLOR_MAP =
{ red: 1, green: 2, yellow: 3, blue: 4, magenta: 5, cyan: 6, white: 7 }
- ANSI_COLORS =
Color codes for ANSI color names
HashWrapper.new(ANSI_COLOR_MAP, InvalidAnsiColorCode)
- BOLD_SEQUENCE =
Sequence for making text bold
AnsiEscapeSequence.new(1)
- RESET_SEQUENCE =
Sequence for a Reset
AnsiEscapeSequence.new(0)
- TERMINAL_WIDTH =
The width of the terminal
Integer(`tput cols`)
- CELL_WIDTH =
A Cell has half of the width of the terminal
TERMINAL_WIDTH / 2
- EMPTY_CELL =
A Cell filled with whitespace
' ' * CELL_WIDTH