From: Robert Klemme Date: 2013-02-20T23:13:57+09:00 Subject: Re: variable editing in ruby (like zsh vared) On Wed, Feb 20, 2013 at 1:11 PM, R. Kumar wrote: > I am redoing some zsh apps in ruby (commandline). One functionality was > that of zsh's vared, which allows editing of a variable. (it also allows > tab completion of paths which was a big bonus). > > The closest I could get in ruby was the String.gets(), however this > gives a blank string to the user. From what i recall Highline allows > using the arrow key to get history (which is great) but not the same. > > Is this functionality implemented somewhere that I've missed? Or in some > gem? Off the top of my head "readline" might help. See "ri Readline". Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/