Skip to content
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

Closed
tomdz opened this issue Nov 23, 2011 · 2 comments
Closed

echo=false with jruby clears terminal #22

tomdz opened this issue Nov 23, 2011 · 2 comments

Comments

@tomdz
Copy link

tomdz commented Nov 23, 2011

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'.

@JEG2
Copy link
Owner

JEG2 commented Nov 24, 2011

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
JEG2 added a commit that referenced this issue Nov 29, 2011
Fix for #22 that uses JLine when running in JRuby
@JEG2
Copy link
Owner

JEG2 commented Nov 29, 2011

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants