Sha256: 0e37108e553e395d0a8ee4e0917c1c13e84b3c431a816da34965123a30a8fa2a
Contents?: true
Size: 565 Bytes
Versions: 1
Compression:
Stored size: 565 Bytes
Contents
require 'vedeu/configuration/configuration' require 'vedeu/output/translator' require 'vedeu/support/esc' module Vedeu # The class represents one half (the other, can be found at # {Vedeu::Background}) of a terminal colour escape sequence. # class Foreground < Translator private # @return [String] def named_codes Esc.foreground_codes[colour] end # @return [String] def numbered_prefix "\e[38;5;" end # @return [String] def rgb_prefix "\e[38;2;%s;%s;%sm" end end # Foreground end # Vedeu
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vedeu-0.4.3 | lib/vedeu/output/foreground.rb |