Sha256: 10b4091281a772f51476deadb81b9033f2f550d097a2cda847b4346b6b86c08b

Contents?: true

Size: 1019 Bytes

Versions: 1

Compression:

Stored size: 1019 Bytes

Contents

# -*- ruby -*-

puts ">>> Adding 'lib' to load path..."
$LOAD_PATH.unshift( "lib" )

#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][:MUES] = { # 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] = :MUES

# Try to require the 'mues' library
begin
	puts "Requiring 'linguistics' module..."
	require 'linguistics'
	puts "Calling Linguistics::use( :en )"
	Linguistics::use( :en, :installProxy => true )
rescue => e
	$stderr.puts "Ack! Linguistics module failed to load: #{e.message}\n\t" +
		e.backtrace.join( "\n\t" )
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eviltrout-linguistics-1.0.6.1 .irbrc