Skip to content

Reset cursor color (OSC 112)

Category: extensions · Tags: Operating System Commands (OSC), Xterm Extensions · Specification ↗

ESC ] 112 BEL
OSC 112 resets the cursor color to the terminal's configured default. The sequence is ESC ] 112 BEL. This is the companion to OSC 12 — after changing the cursor color, send OSC 112 to restore it. Applications that modify cursor color for visual feedback (e.g. mode indicators in vim-like editors) should send this on exit.
How this is tested: Send OSC 112 BEL and verify the terminal remains responsive (sequence consumed without error).

Supported by 0 of 14 backends (0%)

Terminal Applications

TerminalVersionSupportNotes
iTerm23.6.9? unknown
Ghostty1.3.1? unknown
Kitty0.46.2? unknownOSC 112 cursor color reset requires a real display — headless backends have no color palette to reset
VS Code1.113.0? unknown
Warp0.2026.03.18.08.24.03? unknown
Cursor2.6.21? unknown
Terminal.app2.15? unknown

Headless Backends

Parser correctness only — a means the parser accepts the sequence.

BackendVersionSupportNotes
Alacritty0.26.0✗ noOSC 112 cursor color reset requires a real display — headless backends have no color palette to reset
vt100.js0.2.1✗ noNot implemented — pure TypeScript emulator
vterm0.2.0✗ noOSC 112 cursor color reset not implemented in vterm.js
WezTerm0.1.0-fork.5✗ noOSC 112 cursor color reset requires a real display — headless backends have no color palette to reset
xterm.js5.5.0✗ noOSC 112 cursor color reset requires a real display — headless backends have no color palette to reset