Sha256: cd04e530dd65dfdd68f61b068ad7fea7293c05f7c159e74a32d3cc34657f779e

Contents?: true

Size: 1.34 KB

Versions: 1

Compression:

Stored size: 1.34 KB

Contents

module Vedeu

  module EscapeSequences

    # Provides action related escape sequences.
    #
    module Actions

      extend self

      # @return [String]
      def bg_reset
        "\e[49m".freeze
      end

      # @return [String]
      def blink
        "\e[5m".freeze
      end

      # @return [String]
      def blink_off
        "\e[25m".freeze
      end

      # @return [String]
      def bold
        "\e[1m".freeze
      end

      # @return [String]
      def bold_off
        "\e[22m".freeze
      end

      # @return [String]
      def cursor_position
        "\e[6n".freeze
      end

      # @return [String]
      def dim
        "\e[2m".freeze
      end

      # @return [String]
      def fg_reset
        "\e[39m".freeze
      end

      # @return [String]
      def hide_cursor
        "\e[?25l".freeze
      end

      # @return [String]
      def negative
        "\e[7m".freeze
      end

      # @return [String]
      def positive
        "\e[27m".freeze
      end

      # @return [String]
      def reset
        "\e[0m".freeze
      end

      # @return [String]
      def show_cursor
        "\e[?25h".freeze
      end

      # @return [String]
      def underline
        "\e[4m".freeze
      end

      # @return [String]
      def underline_off
        "\e[24m".freeze
      end

    end # Actions

  end # EscapeSequences

end # Vedeu

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vedeu-0.8.0 lib/vedeu/esc/actions.rb