Sha256: bd024db021771c1e4a0eb35a45ab23f9b2a5be610df0c567dafcdc13a598e0bf

Contents?: true

Size: 1.27 KB

Versions: 24

Compression:

Stored size: 1.27 KB

Contents

# frozen_string_literal: true

module Vedeu

  module EscapeSequences

    # Provides action related escape sequences.
    #
    module Actions

      extend self

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    end # Actions

  end # EscapeSequences

end # Vedeu

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
vedeu-0.8.25 lib/vedeu/esc/actions.rb
vedeu-0.8.24 lib/vedeu/esc/actions.rb
vedeu-0.8.23 lib/vedeu/esc/actions.rb
vedeu-0.8.22 lib/vedeu/esc/actions.rb
vedeu-0.8.21 lib/vedeu/esc/actions.rb
vedeu-0.8.20 lib/vedeu/esc/actions.rb
vedeu-0.8.19 lib/vedeu/esc/actions.rb
vedeu-0.8.18 lib/vedeu/esc/actions.rb
vedeu-0.8.17 lib/vedeu/esc/actions.rb
vedeu-0.8.16 lib/vedeu/esc/actions.rb
vedeu-0.8.15 lib/vedeu/esc/actions.rb
vedeu-0.8.14 lib/vedeu/esc/actions.rb
vedeu-0.8.13 lib/vedeu/esc/actions.rb
vedeu-0.8.12 lib/vedeu/esc/actions.rb
vedeu-0.8.10 lib/vedeu/esc/actions.rb
vedeu-0.8.9 lib/vedeu/esc/actions.rb
vedeu-0.8.8 lib/vedeu/esc/actions.rb
vedeu-0.8.7 lib/vedeu/esc/actions.rb
vedeu-0.8.6 lib/vedeu/esc/actions.rb
vedeu-0.8.5 lib/vedeu/esc/actions.rb