Sha256: fb6494f533a64c18a0f106d806c5fb6f215cfe1406d60fd05c5aa4ae55c70204
Contents?: true
Size: 835 Bytes
Versions: 4
Compression:
Stored size: 835 Bytes
Contents
# -*- coding: utf-8 -*- # Copyright (C) 2011, 2015 Rocky Bernstein <rockyb@rubyforge.net> 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 = <<-EOH **#{PREFIX.join(' ')}** Show whether we use terminal highlighting. See also: --------- `set highlight` EOH SHORT_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