Variable: ansi-osc--marker
ansi-osc--marker is a buffer-local variable defined in ansi-osc.el.gz.
Documentation
Marker pointing to the start of an escape sequence.
Used by ansi-osc-filter-region and ansi-osc-apply-on-region to store
position of an unfinished escape sequence, for the complete sequence to
be handled in next call.
Source Code
;; Defined in /usr/src/emacs/lisp/ansi-osc.el.gz
;;; ansi-osc.el --- Support for OSC escape sequences -*- lexical-binding: t; -*-
;; Copyright (C) 2022-2025 Free Software Foundation, Inc.
;; Author: Augusto Stoffel <arstoffel@gmail.com>
;; Matthias Meulien <orontee@gmail.com>
;; Maintainer: emacs-devel@gnu.org
;; Keywords: processes, terminals, services
;; This file is part of GNU Emacs.
;; GNU Emacs is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; GNU Emacs is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs. If not, see <https://www.gnu.org/licenses/>.
;;; Commentary:
;; Interpretation of OSC (Operating System Commands) escape sequences.
;; Handlers for OSC 2, 7 and 8 (for window title, current directory
;; and hyperlinks respectively) are provided.
;; The function `ansi-osc-compilation-filter' can be added to
;; `compilation-filter-hook' to collect OSC sequences in compilation
;; buffers. The variable `ansi-osc-for-compilation-buffer' tells what
;; to do with collected sequences.
;;; Code:
;; According to ECMA 48, section 8.3.89 "OSC - OPERATING SYSTEM COMMAND"
;; OSC control sequences match:
;; "\e\\][\x08-\x0D]*[\x20-\x7E]*\\(\a\\|\e\\\\\\)"
(defvar-local ansi-osc--marker nil
"Marker pointing to the start of an escape sequence.
Used by `ansi-osc-filter-region' and `ansi-osc-apply-on-region' to store
position of an unfinished escape sequence, for the complete sequence to
be handled in next call.")