Sha256: 7c576e86fdc6eae6d6cb82c7ae7ca58386bbc8fb68694f54be9a45b44062a27c

Contents?: true

Size: 1.2 KB

Versions: 3

Compression:

Stored size: 1.2 KB

Contents

require_relative 'fancy_irb/version'

require 'stringio'
require 'paint'

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
    :east_asian_width => false, # set to true if you have double-width characters (slower)
    :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

3 entries across 3 versions & 1 rubygems

Version Path
fancy_irb-1.0.2 lib/fancy_irb.rb
fancy_irb-1.0.1 lib/fancy_irb.rb
fancy_irb-1.0.0 lib/fancy_irb.rb