Hi,
I noticed from google there are many methods to save irb command history
to a file, but is there a method to save both the command history and
command output to a file when exiting irb?
For example, the red lines should also be saved.
irb(main):001:0> class Airb(main):002:1> puts "hello
world"irb(main):003:1> endhello world=> nilirb(main):004:0>
I tried to use “irb | tee irb.log”, but seems there will be unreadable
character displayed when using “Arrow keys”.
Thanks,Brian