OSC 32 Tab Icon (Konsole)
Set the icon of Konsole's tab.
OSC 32 ; Pt ST
- ECMA-48
- §8.3.89 OSC – Operating System Command, p. 51
- Specification
- Session::SessionAttributes, Konsole's source
OSC 32 ; name ST sets the icon of the session’s tab in Konsole to the icon theme’s icon name, such as utilities-terminal. A comment beside it in Konsole’s source calls it non-standard, and dates it to a commit of 2004 (Session.cpp).
Konsole, KDE’s terminal, has a few OSC numbers of its own. It documents none of them, so the definition is its source: the numbers are listed in Session::SessionAttributes, and acted on in Session::setSessionAttribute. They are OSC 30, OSC 32 and OSC 34, with a profile change under OSC 50, and once OSC 31.
A default xterm ignores it, as it is not among the OSC numbers it knows. libghostty-vt has no Konsole code, and ignores it too.
Support
| Terminal | Version | Support | Notes |
|---|---|---|---|
| VT220 | manual, 2nd ed., 1984 | No | OSC is not among the controls it recognizes (§4.2) |
| VT510 | manual, 1st ed., 1993 | No | ignores an OSC string (chapter 4) |
| xterm | patch 412, xterm-411a | No | ignored |
| libghostty-vt | 83edd49 | No | ignored |
| Konsole | 26.11.70, a24c3d71 | Yes | an icon theme name |
| ConEmu | build 230724, its documentation | No | not in its ANSI escape codes |
Validation
OSC32-1: Nothing on screen, and not a title
A
\e]32;utilities-terminal\a
B
|AB_|
cursor 1,3
title ""