Skip to content

Support CSI 16 in hosted terminal to match upstream - #1711

Merged
ychin merged 1 commit into
macvim-dev:masterfrom
ychin:terminal-osi16-support
Nov 24, 2026
Merged

ychin merged 1 commit into
macvim-dev:masterfrom
ychin:terminal-osi16-support

Conversation

@ychin

@ychin ychin commented Nov 24, 2026

Copy link
Copy Markdown
Member

Upstream Vim refactored the cell pixel code, and now supports responding to CSI 16 calls from hosted terminal (see v9.2.1343 / e5d1d16).

Add that support to MacVim too and add a test for that (upstream didn't add a test for this). Also, use this opportunity to refactor the code so MacVim has less special case ifdefs. MacVim's handling of this simply works more similar to terminal Vim than GUI Vim due to the async nature of MacVim's multi-process GUI. We can just reuse the terminal Vim codepath instead of having to add special case ifdef everywhere, and use update_cell_size() to do most of the work by updating a centralized location whenever we receive a new size from the GUI frontend.

@ychin ychin added this to the Release 185 milestone Nov 24, 2026
@ychin ychin added the Vim Parity Issues related to MacVim support of core Vim features. label Nov 24, 2026
@ychin
ychin force-pushed the terminal-osi16-support branch from c70022e to 1606d60 Compare November 24, 2026 01:49
Upstream Vim refactored the cell pixel code, and now supports responding
to CSI 16 calls from hosted terminal (see v9.2.1343 / e5d1d16).

Add that support to MacVim too and add a test for that (upstream didn't
add a test for this). Also, use this opportunity to refactor the code so
MacVim has less special case ifdefs. MacVim's handling of this simply
works more similar to terminal Vim than GUI Vim due to the async nature
of MacVim's multi-process GUI. We can just reuse the terminal Vim
codepath instead of having to add special case ifdef everywhere, and use
update_cell_size() to do most of the work by updating a centralized
location whenever we receive a new size from the GUI frontend.
@ychin
ychin force-pushed the terminal-osi16-support branch from 1606d60 to 50c8f55 Compare November 24, 2026 01:58
@ychin
ychin merged commit b9c7efd into macvim-dev:master Nov 24, 2026
4 checks passed
@ychin
ychin deleted the terminal-osi16-support branch November 24, 2026 04:06
@ychin ychin changed the title Support OSI 16 in hosted terminal to match upstream Support CSI 16 in hosted terminal to match upstream Nov 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Vim Parity Issues related to MacVim support of core Vim features.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant