OSC 7777 Set Font and Window Size
Set mintty's font size and resize its window with it, keeping its rows and columns.
OSC 7777 ; Pt ST
- ECMA-48
- §8.3.89 OSC – Operating System Command, p. 51
- Specification
- mintty's control sequences: font and window size
OSC 7777 ; Pt ST is mintty’s: it takes the same Pt as OSC 7770, a size, a step, or empty for the configured size, but resizes the window along with the font, keeping the rows and columns where it can. OSC 7777 ; ? ST is answered with the sequence that would restore both the font and the window’s size, ended the way the request was (control sequences, termout.c).
A default xterm has no OSC 7777 and ignores it (the OSC numbers it knows). The cases follow xterm.
libghostty-vt does not recognize OSC 7777 either: its OSC parser in osc.zig has no state for the number, so the string is dropped, and the cases pass.
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 | No | not among the OSC numbers it handles (Vt102Emulation.h) |
| ConEmu | build 230724, its documentation | No | not in its ANSI escape codes |
| mintty | 3.8.3, its documentation | Yes | since 2.1.1 (control sequences) |
Validation
OSC7777-1: Setting it changes nothing on screen
A
\e]7777;14\a
B
|AB____|
cursor 1,3
reply none
OSC7777-2: A query is not answered
\e]7777;?\a
|______|
reply none