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 VietTUG.org

ruby readline

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

Ref.: http://adamblog.heroku.com/past/2008/1/22/using_rubys_readline_library/

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

Comments