Text Sizing Protocol #5563
Replies: 3 comments
-
More discussion here: kovidgoyal/kitty#8226 Also note: foot is implementing the width portion of the spec. |
Beta Was this translation helpful? Give feedback.
-
Quick demo of why this would be cool in a markdown CLI renderer. The demo just scales the size of out.mp4I'm personally excited for this to use for building TUIs. Scaling certain UI elements would be really nice, e.g. making some buttons bigger, rendering different sized text in dialogs, and other things of that sort. EDIT: Repo with demo executable I'm using here: https://github.com/reykjalin/md |
Beta Was this translation helpful? Give feedback.
-
Somewhat relevant: there is also some chatter over at Neovim about utilising Kitty's new text sizing protocol: neovim/neovim#32539. |
Beta Was this translation helpful? Give feedback.
-
Kitty has recently implemented a text sizing protocol. The idea is that in a single sequence, one can specify a scale factor (integer, for larger text), a numerator + denominator (for smaller text), and explicit widths. The explicit widths are used as an alternate solution to mode 2027, and are (IMO) more robust - the application can explicitly tell a terminal how wide a given grapheme should be, as opposed to hoping they both agree.
Aside from the width portion, I think there are numerous use cases for the scaling protocol as well. I'm planning to implement this in libvaxis (width is already implemented, but I will do scaling once I have figured out a good data model for it) and it would be great for Ghostty to have support as well.
Beta Was this translation helpful? Give feedback.
All reactions