Project

General

Profile

Bug #17629 » bug.rb

radarek (Radosław Bułat), 02/14/2021 01:28 PM

 
1
require 'readline'
2

    
3
# calling below code before adding item to history will make it work
4
Readline.readline('press enter to continue', false) if ENV['WORKAROUND'] == '1'
5

    
6
Readline::HISTORY << 'Line1'
7
puts "History: #{Readline::HISTORY.to_a}"
8
Readline.readline('> ', true)