Skip to main content

Overline

AI-Generated Content
This page was generated with the assistance of AI and may contain inaccuracies. It is intended as a placeholder for future human verification. If you spot issues ahead of its initial review, please report them on GitHub!
Standard

Overline (SGR 53) is an SGR attribute that renders text with a line above the characters.

Syntax​

CSI 53 m    SGR 53 — Overlined
CSI 55 m SGR 55 — Not overlined
Formal syntax
SGR-overline     = 0x1b, "[", "53", "m" ;
SGR-not-overline = 0x1b, "[", "55", "m" ;

Description​

Per ECMA-48 §8.3.117, SGR parameter 53 selects "overlined." A horizontal line is drawn above the text.

Overline is reset by SGR 55 or SGR 0.

Overline is less commonly supported than underline or strikethrough. It was defined in ECMA-48 but was not implemented on DEC VT terminals.

Examples​

printf '\e[53mOverlined text\e[55m Normal text\n'

Specifications​

SpecificationSection
ECMA-48—

Terminal support​

TerminalSupportVersionNotes
Terminal Emulators
Alacritty✗No
Bobcat??Implemented in external TerminalCtrl library, not in Bobcat source code
contour✓v0.1.0
foot✗NoNo case for SGR 53 found in code
Ghostty✓v1.0.0
iTerm2✗NoOverline (SGR 53) not implemented for text rendering. Code 53 is used for DSR locator status reporting, not overline.
Kitty✗NoSGR 53 not implemented
Konsole✓YesSGR 53 sets RE_OVERLINE rendition flag
mintty✓YesImplemented at src/termout.c:2202. Sets ATTR_OVERL flag.
mlterm✓rel-3_9_1
PuTTY✗NoSGR 53 not implemented
Rio✗NoNo Overline variant in Attr enum
rxvt-unicode✗No
st✗No
terminology~v1.10.0Stored but not yet rendered; marked as TODO in code
VT100✗No
VTE✓Yes
WezTerm✓Yes
Windows Terminal✓YesSGR 53 sets overlined attribute
xterm✗NoNot implemented in xterm
xterm.js✓5.2.0
Multiplexers
cy✗No
GNU Screen✗NoSGR 53 not implemented (rendlist only covers SGR 0-27)
tmux✓3.0
tuios✗No
Zellij✗No

See also​