Sha256: 8a38d30664cf2a681d948be6160cce8da008007bc232f1e6ef5187b1ba6e2cce
Contents?: true
Size: 749 Bytes
Versions: 4
Compression:
Stored size: 749 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2011 Rocky Bernstein <rockyb@rubyforge.net> require 'rubygems'; require 'require_relative' require_relative '../base/subsubcmd' require_relative '../base/subsubmgr' class Trepan::Subcommand::ShowHighlight < Trepan::ShowBoolSubcommand unless defined?(HELP) Trepanning::Subcommand.set_name_prefix(__FILE__, self) HELP = 'Show whether we use terminal highlighting' MIN_ABBREV = 'high'.size end def run(args) val = :term == @proc.settings[:highlight] onoff = show_onoff(val) msg("%s is %s." % [@name, onoff]) end end if __FILE__ == $0 require_relative '../../mock' cmd = MockDebugger::sub_setup(Trepan::Subcommand::ShowHighlight, false) cmd.run(cmd.prefix) end
Version data entries
4 entries across 4 versions & 1 rubygems