-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
echo=false with jruby clears terminal #22
Comments
I agree that this is a bug. I'm pretty unfamiliar with ncurses though and don't know how to fix it. I welcome any help anyone can offer on this issue. |
tomdz
pushed a commit
to tomdz/highline
that referenced
this issue
Nov 27, 2011
tomdz
pushed a commit
to tomdz/highline
that referenced
this issue
Nov 28, 2011
This reverts commit ec525e8.
JEG2
added a commit
that referenced
this issue
Nov 29, 2011
Fix for #22 that uses JLine when running in JRuby
You have resolved this issue with your changes. Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When using highline under jruby (with ffi-ncurses) on Linux I get this weird behavior that highline clears the terminal before allowing me to enter characters in echo=false mode:
!/usr/bin/env ruby
require 'rubygems'
require 'highline/import'
ask("Username ?\n")
ask("Password ?\n") { |q| q.echo = false }
The environment is:
$ ruby -v
jruby 1.6.4 (ruby-1.8.7-p330) (2011-08-23 17ea768) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_26) [linux-amd64-java]
$ gem list
*** LOCAL GEMS ***
ffi (1.0.9 java)
ffi-locale (1.0.1)
ffi-ncurses (0.4.0)
highline (1.6.8)
HighLine::SystemExtensions::CHARACTER_MODE is 'ncurses'.
The text was updated successfully, but these errors were encountered: