Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information