Tags: patch This change detects OSC sequences and ignores them. This is what's normally expected and avoids strange outputs. Starting with version 4, the fish shell has started sending out OSC sequences by default, which looks pretty bad on term. This change avoids this particular problem. This is PATCH 1/3, because I'd like to propose making it possible to handle OSC sequences in term in follow-up changes. Emacs already has handlers for OSC sequences in ansi-osc, why not make use of them? In GNU Emacs 31.0.50 (build 5, x86_64-apple-darwin23.6.0, NS appkit-2487.70 Version 14.7.5 (Build 23H527)) of 2025-05-02 built on boomer.zia Repository revision: 99ca41b6ef300653a0d15b73a0c0d446a9a9e059 Repository branch: master Windowing system distributor 'Apple', version 10.3.2487 System Description: macOS 14.7.5 Configured using: 'configure --program-suffix=-head --with-tree-sitter --with-native-compilation=aot'