Sha256: 86e5b61634d2ea0e2a07d20e1b17654f1d247d23bfec58f3df3b592c0c2198e0

Contents?: true

Size: 497 Bytes

Versions: 13

Compression:

Stored size: 497 Bytes

Contents

module Vedeu
  class Esc
    class << self
      def bold
        [esc, '1m'].join
      end

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

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

      def hide_cursor
        [esc, '?25l'].join
      end

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

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

      def show_cursor
        [esc, '?25h'].join
      end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
vedeu-0.0.16 lib/vedeu/output/esc.rb
vedeu-0.0.15 lib/vedeu/output/esc.rb
vedeu-0.0.14 lib/vedeu/output/esc.rb
vedeu-0.0.13 lib/vedeu/output/esc.rb
vedeu-0.0.12 lib/vedeu/output/esc.rb
vedeu-0.0.11 lib/vedeu/output/esc.rb
vedeu-0.0.10 lib/vedeu/output/esc.rb
vedeu-0.0.9 lib/vedeu/output/esc.rb
vedeu-0.0.8 lib/vedeu/output/esc.rb
vedeu-0.0.7 lib/vedeu/output/esc.rb
vedeu-0.0.6 lib/vedeu/output/esc.rb
vedeu-0.0.5 lib/vedeu/output/esc.rb
vedeu-0.0.4 lib/vedeu/output/esc.rb