Files
news.gitea.happylizard.me/bin/gems/pry-0.15.2/lib/pry/commands/clear_screen.rb
T
pizza2d1 4cee170d66
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 9s
Add bin and edit workflow
2026-09-16 13:11:16 -06:00

21 lines
559 B
Ruby

# frozen_string_literal: true
class Pry
class Command
class ClearScreen < Pry::ClassCommand
match 'clear-screen'
group 'Input and Output'
description 'Clear the contents of the screen/window Pry is running in.'
def process
if Pry::Helpers::Platform.windows?
pry_instance.config.system.call(pry_instance.output, 'cls', pry_instance)
else
pry_instance.config.system.call(pry_instance.output, 'clear', pry_instance)
end
end
Pry::Commands.add_command(self)
end
end
end