JEG2 / highline

A higher level command-line oriented interface.
Other
1.29k stars 137 forks source link

echo = false clears terminal #39

Closed gantbd closed 12 years ago

gantbd commented 12 years ago

require "highline/import"

pass = ask("Password: ") { |q| q.echo = false }

Ruby: ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

Gems: ffi (1.0.11) ffi-locale (1.0.1) ffi-ncurses (0.4.0) highline (1.6.13)

HighLine::SystemExtensions::CHARACTER_MODE == "ncurses"

Similar to #22, but on standard Ruby interpreter.

JEG2 commented 12 years ago

Yeah, this is a known issue with our nurses support. Can you install termios to circumvent?

I guess we could remove nurses support, but that's probably our only option to "fix" this.

gantbd commented 12 years ago

Thanks so much for the quick response! Installing ruby-termios fixed the issue.

Could be an easy argument to make for pulling ncurses support and adding a dependency on termios for the gem install if that reduces issues OTB after installation...highline being a highly recommended library and all. :D

Great work, and thanks again for the fast response!

JEG2 commented 12 years ago

The problem with a termios dependency is that it doesn't work for Windows. :(