module Byebug::Helpers::ToggleHelper
def enable_disable_display(is_enable, args)
def enable_disable_display(is_enable, args) raise pr("toggle.errors.no_display") if n_displays.zero? selected_displays = args ? args.split(/ +/) : [1..n_displays + 1] selected_displays.each do |pos| pos, err = get_int(pos, "#{is_enable} display", 1, n_displays) raise err unless err.nil? Byebug.displays[pos - 1][0] = (is_enable == "enable") end end