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

Allow composing user-defined WINCH signal traps #736

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 10, 2024

  1. Allow composing user-defined WINCH signal traps

    Resolves ruby#735
    
    Just as the `handle_interrupted` method runs Reline's interrupt hook logic and then runs any user-defined interrupt hook logic, `handle_resized` should run Reline's resize hook logic and then run any user-defined resize logic.
    
    This allows user CLI's with additional content in addition to the Reline prompt to ensure that additional content is rendered properly as the terminal is resized.
    
    Note: This is my best first attempt at this solution as someone who has only read the source code here today. There may be details/considerations that are important that I missed or didn't consider. I am very open to changes as necessary.
    
    cc: @st0012
    fractaledmind authored Aug 10, 2024
    Configuration menu
    Copy the full SHA
    6826080 View commit details
    Browse the repository at this point in the history