Sha256: 5a9ab20fd314dfd710eba67c766db47f0fc8f474284f577e10ee53c73bb3da8f

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

module Vedeu
  module Esc
    extend self

    def blink
      [esc, '5m'].join
    end

    def bold
      [esc, '1m'].join
    end
    alias_method :bright, :bold

    def clear
      [esc, '2J'].join
    end

    def clear_line
      [esc, '2K'].join
    end

    def esc
      [27.chr, '['].join
    end

    def inverse
      [esc, '7m'].join
    end
    alias_method :reverse, :inverse

    def normal
      [esc, '2m'].join
    end
    alias_method :dim, :normal

    def reset
      [esc, '0m'].join
    end

    def underline
      [esc, '4m'].join
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vedeu-0.0.19 lib/vedeu/output/esc.rb
vedeu-0.0.18 lib/vedeu/output/esc.rb