Sha256: c2abbe6026686c9a428878885e482b5f98cdf8e5b46b3d704aa089a10d4bab3e

Contents?: true

Size: 1.31 KB

Versions: 12

Compression:

Stored size: 1.31 KB

Contents

require_relative 'fancy_irb/version'

require 'stringio'
require 'paint'
require 'unicode/display_width'

require_relative 'fancy_irb/terminal_info'
require_relative 'fancy_irb/size_detector'
require_relative 'fancy_irb/error_capturer'
require_relative 'fancy_irb/implementation'

module FancyIrb
  DEFAULT_OPTIONS = {
    :rocket_mode     => true,       # activate or deactivate #=> rocket output
    :rocket_prompt   => '#=> ',     # prompt to use for the rocket
    :result_prompt   => '=> ',      # prompt to use for normal output
    :unicode_display_width => true, # set to false if you don't want to check for proper
                                    # string width for better performance
    :colorize => {                  # colors hash. Set to nil to deactivate colors
      :rocket_prompt => [:blue],
      :result_prompt => [:blue],
      :input_prompt  => nil,
      :irb_errors    => [:red, :clean],
      :stderr        => [:red, :bright],
      :stdout        => nil,
      :input         => nil,
     },
  }

  SKIP_ROCKET_METHODS = %w[
    system
    spawn
  ].map(&:to_sym)

  # TODO: each_byte, each_char, each_codepoint, each, etc
  TRACK_HEIGHT_INPUT_METHODS = %w[
    binread
    read
    gets
    getc
    getbyte
    readbyte
    readchar
    readline
    readlines
    readpartial
    sysread
  ].map(&:to_sym)
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fancy_irb-2.1.2 lib/fancy_irb.rb
fancy_irb-2.1.1 lib/fancy_irb.rb
fancy_irb-2.1.0 lib/fancy_irb.rb
fancy_irb-2.0.0 lib/fancy_irb.rb
fancy_irb-1.4.3 lib/fancy_irb.rb
fancy_irb-1.4.2 lib/fancy_irb.rb
fancy_irb-1.4.1 lib/fancy_irb.rb
fancy_irb-1.4.0 lib/fancy_irb.rb
fancy_irb-1.3.0 lib/fancy_irb.rb
fancy_irb-1.2.1 lib/fancy_irb.rb
fancy_irb-1.2.0 lib/fancy_irb.rb
fancy_irb-1.1.0 lib/fancy_irb.rb