Skip to content

Commit

Permalink
Add lib/pry/input/simple_stdio.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
andrehjr committed Mar 23, 2024
1 parent f1f5f93 commit 58bc4f9
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/pry/input/simple_stdio.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

class Pry
module Input
# Readline replacement for low-capability terminals.
class SimpleStdio
def self.readline(prompt)
Pry.config.output.print(prompt)
$stdin.gets
end
end
end
end

0 comments on commit 58bc4f9

Please sign in to comment.