Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (27 sloc) 1.002 kB
# -*- ruby -*-
puts ">>> Adding 'lib' to load path..."
$LOAD_PATH.unshift( "lib", "ext" )
#puts ">>> Turning on $VERBOSE and $DEBUG..."
# $VERBOSE = $DEBUG = true
require './utils'
include UtilityFunctions
def colored( prompt, *args )
return ansiCode( *(args.flatten) ) + prompt + ansiCode( 'reset' )
end
# Modify prompt to do highlighting
# IRB.conf[:PROMPT][:LINKPARSER] = { # name of prompt mode
# :PROMPT_I => colored( "%N(%m):%03n:%i>", %w{bold white on_blue} ) + " ",
# :PROMPT_S => colored( "%N(%m):%03n:%i%l", %w{white on_blue} ) + " ",
# :PROMPT_C => colored( "%N(%m):%03n:%i*", %w{white on_blue} ) + " ",
# :RETURN => " ==> %s\n\n" # format to return value
# }
# IRB.conf[:PROMPT_MODE] = :LINKPARSER
# Try to require the 'linkparser' library
begin
puts "Requiring 'linkparser' module..."
require 'linkparser'
rescue => e
$stderr.puts "Ack! LinkParser module failed to load: #{e.message}\n\t" +
e.backtrace.join( "\n\t" )
end
$dict = LinkParser::Dictionary.new
Jump to Line
Something went wrong with that request. Please try again.