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
| Specification | Section |
|---|---|
| ECMA-48 | — |
Terminal support
| Terminal | Support | Version | Notes |
|---|---|---|---|
| Terminal Emulators | |||
| Alacritty | ✗ | No | |
| Bobcat | ? | ? | Implemented in external TerminalCtrl library, not in Bobcat source code |
| contour | ✓ | v0.1.0 | |
| foot | ✗ | No | No case for SGR 53 found in code |
| Ghostty | ✓ | v1.0.0 | |
| iTerm2 | ✗ | No | Overline (SGR 53) not implemented for text rendering. Code 53 is used for DSR locator status reporting, not overline. |
| Kitty | ✗ | No | SGR 53 not implemented |
| Konsole | ✓ | Yes | SGR 53 sets RE_OVERLINE rendition flag |
| mintty | ✓ | Yes | Implemented at src/termout.c:2202. Sets ATTR_OVERL flag. |
| mlterm | ✓ | rel-3_9_1 | |
| PuTTY | ✗ | No | SGR 53 not implemented |
| Rio | ✗ | No | No Overline variant in Attr enum |
| rxvt-unicode | ✗ | No | |
| st | ✗ | No | |
| terminology | ~ | v1.10.0 | Stored but not yet rendered; marked as TODO in code |
| VT100 | ✗ | No | |
| VTE | ✓ | Yes | |
| WezTerm | ✓ | Yes | |
| Windows Terminal | ✓ | Yes | SGR 53 sets overlined attribute |
| xterm | ✗ | No | Not implemented in xterm |
| xterm.js | ✓ | 5.2.0 | |
| Multiplexers | |||
| cy | ✗ | No | |
| GNU Screen | ✗ | No | SGR 53 not implemented (rendlist only covers SGR 0-27) |
| tmux | ✓ | 3.0 | |
| tuios | ✗ | No | |
| Zellij | ✗ | No | |
See also
- Underline — SGR 4 — Line below text
- Strikethrough — SGR 9 — Line through text