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

Warning displayed when requiring readline #58

Open
noteflakes opened this issue Oct 23, 2015 · 2 comments
Open

Warning displayed when requiring readline #58

noteflakes opened this issue Oct 23, 2015 · 2 comments

Comments

@noteflakes
Copy link

When requiring readline in the packaged app, the following warning is displayed when running it after packaging:

No entry for terminal type "xterm-256color";
using dumb terminal settings.

To reproduce change the hello.rb file in tutorial 2 as follows:

#!/usr/bin/env ruby
require 'faker'
require 'readline'
puts "hello #{Faker::Name.name}"

A workaround is to specify -rreadline when invoking ruby in the wrapper script:

# Run the actual app using the bundled Ruby interpreter, with Bundler activated.
exec "$SELFDIR/lib/ruby/bin/ruby" -rbundler/setup -rreadline "$SELFDIR/lib/app/hello.rb"
@FooBarWidget
Copy link
Member

Which OS were you running the demo app on?

@noteflakes
Copy link
Author

OSX (10.11)

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