This page is READ-ONLY. It is generated from the old site.
All timestamps are relative to 2013 (when this page is generated).
If you are looking for TeX support, please go to

ruby readline

to design a shell/interative session
Added by about 3 years ago


1 require 'readline'
3 loop do
4   line = Readline::readline('> ')
5   Readline::HISTORY.push(line)
6   puts "You typed: #{line}" 
7 end