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

Disable terminal focus reporting #2964

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

Commits on Apr 6, 2024

  1. Disable terminal focus reporting

    Terminals can be asked to report focus events with
    
            print("\x1b[?1004h")
    
    For some reason, our use of curses sends a sequence like that (not
    exactly that one, but it contains "1004", you can observe it by
    running ranger inside "script").
    
    Then the terminal will send ^[[I and ^[[O for "focus in" and "focus
    out" events respectively.  This is quite annoying. The proper way
    to deal with these is to map them ourselves in all modes (to a nop,
    or optionally add some UI feedback).
    
    I do not know how to do that, so turn it off altogether with the
    corresponding "l" sequence.
    
    Fixes ranger#2864
    krobelus committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    d557b0f View commit details
    Browse the repository at this point in the history