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

Continue processing even if terminfo database couldn't be found #673

Merged
merged 1 commit into from
Apr 6, 2024

Commits on Apr 6, 2024

  1. Continue processing even if terminfo database couldn't be found

    Fix ruby#447 ruby#543
    
    This problem occurs when Fiddle can be loaded, curses can be loaded, and TERM is not registered in Terminfo.
    It should also occur at hardcopy terminals and when Terminfo information is low, but no such reports have been received.
    
    Reline should not abort the process because of missing Terminfo.
    Reline proceeds with `Reline::Terminfo.enabled? == false` when fiddle or curses cannot be loaded.
    And does the same when Terminfo is present but TERM is not.
    https://github.com/ruby/reline/blob/ebab2875f1226f877376558d8758bc0e2a1776c7/lib/reline/terminfo.rb#L156-L160
    
    You can check the operation with `TERM=foo bundle exec bin/console`.
    ima1zumi committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    e130c10 View commit details
    Browse the repository at this point in the history