.. _ghostty: ghostty ------- Tested Software version 1.3.2-main-+3706abab0 on Linux. The homepage URL of this terminal is https://ghostty.org/. Full results available at ucs-detect_ repository path `data/ghostty.yaml `_. .. _ghosttyscores: Score Breakdown +++++++++++++++ Detailed breakdown of how scores are calculated for *ghostty*: .. table:: :class: sphinx-datatable === ==================================== =========== ==================== # Score Type Raw Score Final Scaled Score === ==================================== =========== ==================== 1 :ref:`WIDE ` 99.80% 99.7% 2 :ref:`NARROW ` 100.00% 100.0% 3 :ref:`ZWJ ` 100.00% 100.0% 4 :ref:`LANG ` 99.86% 99.9% 5 :ref:`VS16 ` 100.00% 100.0% 6 :ref:`VS15 ` 100.00% *(excluded)* 7 :ref:`SRI ` 100.00% 100.0% 8 :ref:`SFZ ` 100.00% 100.0% 9 :ref:`RI ` 100.00% 100.0% 10 :ref:`FEAT ` 68.75% 73.3% 11 :ref:`Graphics ` 100% 100.0% 12 :ref:`Resources ` 46.2% 46.2% === ==================================== =========== ==================== **Score Comparison Plot:** The following plot shows how this terminal's scores compare to all other terminals tested. .. figure:: ../_static/plots/ghostty_scores_scaled.png :align: center :width: 800px Scaled scores comparison across all metrics (normalized 0-100%) **Final Scaled Score Calculation:** - Raw Final Score: 93.95% (weighted average: WIDE + NARROW + ZWJ + LANG + VS16 + 0.33 * SRI + 0.33 * SFZ + RI + CAP + 0.5 * GFX + 0.5 * RSC) the categorized 'average' absolute support level of this terminal. .. note:: RSC (Resources) is a composite CPU, memory, and runtime score. RSC is weighted at 0.5 (half as powerful as other metrics). FEAT (Features) is the fraction of notable features supported. GFX (Graphics) scores 100% for modern protocols (iTerm2, Kitty), 50% for legacy only (Sixel, ReGIS), 0% for none. - Final Scaled Score: 98.3% (normalized across all terminals tested). *Final Scaled scores* are normalized (0-100%) relative to all terminals tested **WIDE Score Details:** Wide character support calculation: - Total successful codepoints: 505 - Total codepoints tested: 506 - Formula: 505 / 506 - Result: 99.80% **NARROW Score Details:** Narrow character support calculation: - Total successful codepoints: 187 - Total codepoints tested: 187 - Formula: 187 / 187 - Result: 100.00% **ZWJ Score Details:** Emoji ZWJ (Zero-Width Joiner) support calculation: - Total successful sequences: 1445 - Total sequences tested: 1445 - Formula: 1445 / 1445 - Result: 100.00% **VS16 Score Details:** Variation Selector-16 support calculation: - Errors: 0 of 426 codepoints tested - Success rate: 100.0% - Formula: 100.0 / 100 - Result: 100.00% **VS15 Score Details** *(excluded from final score)*: Variation Selector-15 support calculation: - Errors: 0 of 158 codepoints tested - Success rate: 100.0% - Formula: 100.0 / 100 - Result: 100.00% **SRI Score Details:** Standalone Regional Indicator support calculation: - Total successful codepoints: 26 - Total codepoints tested: 26 - Formula: 26 / 26 - Result: 100.00% **SFZ Score Details:** Standalone Fitzpatrick skin tone modifier support calculation: - Total successful codepoints: 5 - Total codepoints tested: 5 - Formula: 5 / 5 - Result: 100.00% **RI Score Details:** Regional Indicator flag sequence support calculation: - Total successful sequences: 262 - Total sequences tested: 262 - Formula: 262 / 262 - Result: 100.00% .. _ghosttyfeaturesdetails: **Features Score Details:** Notable terminal features (11.0 / 16): - :ref:`Set bracketed paste mode (2004) `: **yes** - :ref:`Synchronized Output (2026) `: **yes** - :ref:`Send FocusIn/FocusOut events (1004) `: **yes** - :ref:`Enable SGR Mouse Mode (1006) `: **yes** - :ref:`Grapheme Clustering (2027) `: **yes** - :ref:`Bracketed Paste MIME (5522) `: **no** - :ref:`Kitty Keyboard `: **yes** - :ref:`XTGETTCAP (Full) `: **yes** - :ref:`Text Sizing (OSC 66) `: **no** - :ref:`Kitty Clipboard Protocol `: **no** - :ref:`OSC 52 Clipboard `: **yes** - :ref:`Kitty Pointer Shapes (OSC 22) `: **no** - :ref:`Kitty Notifications (OSC 99) `: **no** - :ref:`Color Report (OSC 10/11) `: **yes** - :ref:`Terminal Identification (XTVERSION) `: **yes** - :ref:`Truecolor Detection `: **yes** Raw score: 68.75% **Graphics Score Details:** Graphics protocol support (100%): - Sixel: **no** - ReGIS: **no** - iTerm2: **no** - Kitty: **yes** Scoring: 100% for modern (iTerm2/Kitty), 50% for legacy only (Sixel/ReGIS), 0% for none **Resource Score Details:** - Duration: 7.0s - Mean CPU: 100.6% - Mean RSS: 275.2 MB - Resources Score: 46/100 - Note: log-scale composite cost = log(CPU+1) + log(RSS+1) + log(time+1) - Scaled result: 46.2% **LANG Score Details (Geometric Mean):** Geometric mean calculation: - Formula: (p₁ × p₂ × ... × pₙ)^(1/n) where n = 85 languages - About `geometric mean `_ - Result: 99.86% .. _ghosttywide: Wide character support ++++++++++++++++++++++ Wide character support of *ghostty* is **99.8%** (1 errors of 506 codepoints tested). Sequence of a WIDE character, from midpoint of alignment failure records: .. table:: :class: sphinx-datatable === ========================================= ========= ========== ========= ====================== # Codepoint Python Category wcwidth Name === ========================================= ========= ========== ========= ====================== 1 `U+115F `_ '\\u115f' Lo 2 HANGUL CHOSEONG FILLER === ========================================= ========= ========== ========= ====================== Total codepoints: 1 - Shell test using `printf(1)`_, ``'|'`` should align in output:: $ printf "\xe1\x85\x9f|\\n12|\\n" ᅟ| 12| - See Line 98 of `ucs_wide.txt `_ for this sequence in the example file. Screenshot: .. image:: ../_static/screenshots/ghostty/wide.png :alt: Terminal screenshot of the rendering discrepancy :width: 1024px :height: 276px - python `wcwidth.wcswidth()`_ measures width 2, while *ghostty* measures width 0. .. _ghosttynarrow: Narrow character support ++++++++++++++++++++++++ Narrow character support of *ghostty* is **100.0%** (0 errors of 187 codepoints tested). .. _ghosttyzwj: Emoji ZWJ support +++++++++++++++++ Compatibility of *ghostty* with the Unicode Emoji ZWJ sequence table is **100.0%** (0 errors of 1445 sequences tested). .. _ghosttyvs16: Variation Selector-16 support +++++++++++++++++++++++++++++ Emoji VS-16 results for *ghostty* is 0 errors out of 426 total codepoints tested, 100.0% success. All codepoint combinations with Variation Selector-16 tested were successful. .. _ghosttyvs15: Variation Selector-15 support +++++++++++++++++++++++++++++ Emoji VS-15 results for *ghostty* is 0 errors out of 158 total codepoints tested, 100.0% success. All codepoint combinations with Variation Selector-15 tested were successful. .. _ghosttysri: Standalone Regional Indicator support +++++++++++++++++++++++++++++++++++++ Standalone Regional Indicator support of *ghostty* is **100.0%** (0 errors of 26 codepoints tested). .. _ghosttysfz: Standalone Fitzpatrick modifier support +++++++++++++++++++++++++++++++++++++++ Standalone Fitzpatrick skin tone modifier support of *ghostty* is **100.0%** (0 errors of 5 codepoints tested). .. _ghosttyri: Regional Indicator flag sequence support ++++++++++++++++++++++++++++++++++++++++ Regional Indicator flag sequence support of *ghostty* is **100.0%** (0 errors of 262 sequences tested). .. _ghosttygraphics: Graphics Protocol Support +++++++++++++++++++++++++ *ghostty* supports the following graphics protocols: `Kitty graphics`_. **Detection Methods:** - **Sixel** and **ReGIS**: Detected via the Device Attributes (DA1) query ``CSI c`` (``\x1b[c``). Extension code ``4`` indicates Sixel_ support, ``3`` ReGIS_. - **Kitty graphics**: Detected by sending a Kitty graphics query and checking for an ``OK`` response. - **iTerm2 inline images**: Detected via the iTerm2 capabilities query ``OSC 1337 ; Capabilities``. **Device Attributes Response:** - Extensions reported: 22, 52 - Sixel_ indicator (``4``): not present - ReGIS_ indicator (``3``): not present .. _Sixel: https://en.wikipedia.org/wiki/Sixel .. _ReGIS: https://en.wikipedia.org/wiki/ReGIS .. _`iTerm2 inline images`: https://iterm2.com/documentation-images.html .. _ghosttylang: Language Support ++++++++++++++++ The following 83 languages were tested with 100% success: Aja, Amarakaeri, Arabic, Standard, Assyrian Neo-Aramaic, Baatonum, Bamun, Belanda Viri, Bengali, Bhojpuri, Bora, Burmese, Catalan (2), Chakma, Chickasaw, Chinantec, Chiltepec, Dagaare, Southern, Dari, Dendi, Dinka, Northeastern, Dzongkha, Evenki, Farsi, Western, Fon, French (Welche), Fur, Ga, Gen, Gilyak, Gujarati, Gumuz, Hindi, Kabyle, Kannada, Khmer, Central, Khün, Lamnso', Lao, Lingala (tones), Magahi, Maithili, Malayalam, Maldivian, Maori (2), Marathi, Mazahua Central, Mon, Mòoré, Nanai, Navajo, Nepali, Orok, Otomi, Mezquital, Panjabi, Eastern, Panjabi, Western, Pashto, Northern, Picard, Pular (Adlam), Sanskrit, Secoya, Seraiki, Shan, Shipibo-Conibo, Sinhala, Siona, South Azerbaijani, Tagalog (Tagalog), Tai Dam, Tamang, Eastern, Tamazight, Central Atlas, Tamil, Telugu, Tem, Thai, Thai (2), Tibetan, Central, Ticuna, Uduk, Urdu, Urdu (2), Vietnamese, Yaneshaʼ, Yiddish, Eastern, Yoruba. The following 2 languages are not fully supported: .. table:: :class: sphinx-datatable ======================================================== ========== ========= ============= lang n_errors n_total pct_success ======================================================== ========== ========= ============= :ref:`Sanskrit (Grantha) ` 22 237 90.7% :ref:`Javanese (Javanese) ` 10 488 98.0% ======================================================== ========== ========= ============= .. _ghosttylangsanskritgrantha: Sanskrit (Grantha) ^^^^^^^^^^^^^^^^^^ Sequence of language *Sanskrit (Grantha)* from midpoint of alignment failure records: .. table:: :class: sphinx-datatable === ================================================= ============= ========== ========= =================== # Codepoint Python Category wcwidth Name === ================================================= ============= ========== ========= =================== 1 `U+00011315 `_ '\\U00011315' Lo 1 GRANTHA LETTER KA 2 `U+0001134D `_ '\\U0001134d' Mc 0 GRANTHA SIGN VIRAMA === ================================================= ============= ========== ========= =================== Total codepoints: 2 - Shell test using `printf(1)`_, ``'|'`` should align in output:: $ printf "\xf0\x91\x8c\x95\xf0\x91\x8d\x8d|\\n1|\\n" 𑌕𑍍| 1| Screenshot: .. image:: ../_static/screenshots/ghostty/lang_Sanskrit__Grantha_.png :alt: Terminal screenshot of the rendering discrepancy :width: 1024px :height: 276px - python `wcwidth.wcswidth()`_ measures width 1, while *ghostty* measures width 2. .. _ghosttylangjavanesejavanese: Javanese (Javanese) ^^^^^^^^^^^^^^^^^^^ Sequence of language *Javanese (Javanese)* from midpoint of alignment failure records: .. table:: :class: sphinx-datatable === ========================================= ========= ========== ========= ================== # Codepoint Python Category wcwidth Name === ========================================= ========= ========== ========= ================== 1 `U+A98F `_ '\\ua98f' Lo 1 JAVANESE LETTER KA 2 `U+A9C0 `_ '\\ua9c0' Mc 0 JAVANESE PANGKON === ========================================= ========= ========== ========= ================== Total codepoints: 2 - Shell test using `printf(1)`_, ``'|'`` should align in output:: $ printf "\xea\xa6\x8f\xea\xa7\x80|\\n1|\\n" ꦏ꧀| 1| Screenshot: .. image:: ../_static/screenshots/ghostty/lang_Javanese__Javanese_.png :alt: Terminal screenshot of the rendering discrepancy :width: 1024px :height: 276px - python `wcwidth.wcswidth()`_ measures width 1, while *ghostty* measures width 2. .. _ghosttydecmodes: DEC Private Modes Support +++++++++++++++++++++++++ DEC private modes results for *ghostty*: 7 changeable modes of 7 supported out of 8 total modes tested (87.5% support, 87.5% changeable). Complete list of DEC private modes tested: .. table:: :class: sphinx-datatable ====== ===================== =================================== =========== ============ ========= Mode Name Description Supported Changeable Enabled ====== ===================== =================================== =========== ============ ========= 1004 FOCUS_IN_OUT_EVENTS Send FocusIn/FocusOut events Yes Yes No 1006 MOUSE_EXTENDED_SGR Enable SGR Mouse Mode Yes Yes No 2004 BRACKETED_PASTE Set bracketed paste mode Yes Yes No 2026 SYNCHRONIZED_OUTPUT Synchronized Output Yes Yes No 2027 GRAPHEME_CLUSTERING Grapheme Clustering Yes Yes Yes 2031 COLOR_PALETTE_UPDATES Color palette updates Yes Yes No 2048 IN_BAND_WINDOW_RESIZE In-Band Window Resize Notifications Yes Yes No 5522 BRACKETED_PASTE_MIME Bracketed Paste MIME No No No ====== ===================== =================================== =========== ============ ========= **Summary**: 7 changeable, 1 not changeable. .. _ghosttykittykbd: Kitty Keyboard Protocol +++++++++++++++++++++++ *ghostty* supports the `Kitty keyboard protocol`_. .. table:: :class: sphinx-datatable === =============================== ===================== ======= # Flag Key State === =============================== ===================== ======= 1 Disambiguate escape codes ``disambiguate`` No 2 Report event types ``report_events`` No 3 Report alternate keys ``report_alternates`` No 4 Report all keys as escape codes ``report_all_keys`` No 5 Report associated text ``report_text`` No === =============================== ===================== ======= Detection is performed by sending ``CSI ? u`` to query the current progressive enhancement flags. A terminal that supports this protocol responds with the active flags value. .. _`Kitty keyboard protocol`: https://sw.kovidgoyal.net/kitty/keyboard-protocol/ .. _ghosttyxtgettcap: XTGETTCAP (Terminfo Capabilities) +++++++++++++++++++++++++++++++++ *ghostty* supports the ``XTGETTCAP`` sequence and reports **212** terminfo capabilities (Full). .. table:: :class: sphinx-datatable === ============ ============================================= ================================================================ # Capability Description Value === ============ ============================================= ================================================================ 1 AX Supports default colors *(empty)* 2 BD Enter bold mode (kitty) ``\E[?2004l`` 3 BE Exit bold mode (kitty) ``\E[?2004h`` 4 E3 Erase scrollback ``\E[3J`` 5 Ms Clipboard set ``\E]52;%p1%s;%p2%s\a`` 6 PE Presentation end (kitty) ``\E[201~`` 7 PS Presentation start (kitty) ``\E[200~`` 8 RGB Bits per color channel (8 = 24-bit truecolor) ``8`` 9 RV Enter reverse mode (kitty) ``\E[>c`` 10 Se Reset underline style ``\E[2 q`` 11 Setulc Set underline color ``\E[58:2::%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%...`` 12 Smulx Styled underline ``\E[4:%p1%dm`` 13 Ss Set underline style ``\E[%p1%d q`` 14 Su Colored underlines *(empty)* 15 Sync Synchronized output ``\E[?2026%?%p1%{1}%-%tl%eh%;`` 16 TN Terminal name ``xterm-ghostty`` 17 Tc Truecolor (24-bit RGB) *(empty)* 18 XM Enter marks mode (kitty) ``\E[?1006;1000%?%p1%{1}%=%th%el%;`` 19 XR Enter reset mode (kitty) ``\E[>0q`` 20 XT Xterm extensions *(empty)* 21 acsc Alternate character set ``++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyz...`` 22 am Auto right margin *(empty)* 23 bce Background color erase *(empty)* 24 bel Bell ``\a`` 25 blink Enter blink mode ``\E[5m`` 26 bold Enter bold mode ``\E[1m`` 27 ccc Can redefine colors *(empty)* 28 civis Hide cursor ``\E[?25l`` 29 clear Clear screen ``\E[H\E[2J`` 30 cnorm Normal cursor ``\E[?12l\E[?25h`` 31 colors Max colors on screen ``256`` 32 cols Columns ``80`` 33 cr Carriage return ``\r`` 34 csr Change scroll region ``\E[%i%p1%d;%p2%dr`` 35 cub Cursor left n ``\E[%p1%dD`` 36 cub1 Cursor left ``\b`` 37 cud Cursor down n ``\E[%p1%dB`` 38 cud1 Cursor down ``\n`` 39 cuf Cursor right n ``\E[%p1%dC`` 40 cuf1 Cursor right ``\E[C`` 41 cup Cursor address ``\E[%i%p1%d;%p2%dH`` 42 cuu Cursor up n ``\E[%p1%dA`` 43 cuu1 Cursor up ``\E[A`` 44 cvvis Very visible cursor ``\E[?12;25h`` 45 dch Delete n characters ``\E[%p1%dP`` 46 dch1 Delete character ``\E[P`` 47 dim Enter dim mode ``\E[2m`` 48 dl Delete n lines ``\E[%p1%dM`` 49 dl1 Delete line ``\E[M`` 50 dsl Disable status line ``\E]2;\a`` 51 ech Erase characters ``\E[%p1%dX`` 52 ed Clear to end of screen ``\E[J`` 53 el Clear to end of line ``\E[K`` 54 el1 Clear to start of line ``\E[1K`` 55 fd Enter font mode (kitty) ``\E[?1004l`` 56 fe Exit font mode (kitty) ``\E[?1004h`` 57 flash Flash screen ``\E[?5h$<100/>\E[?5l`` 58 fsl From status line ``\a`` 59 fullkbd Full Kitty keyboard protocol *(empty)* 60 home Cursor home ``\E[H`` 61 hpa Horizontal position ``\E[%i%p1%dG`` 62 hs Has status line *(empty)* 63 ht Horizontal tab ``\t`` 64 hts Set tab stop ``\EH`` 65 ich Insert n characters ``\E[%p1%d@`` 66 ich1 Insert character ``\E[@`` 67 il Insert n lines ``\E[%p1%dL`` 68 il1 Insert line ``\E[L`` 69 ind Scroll forward ``\n`` 70 indn Scroll forward n ``\E[%p1%dS`` 71 initc Initialize color ``\E]4;%p1%d;rgb:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{100...`` 72 invis Invisible cursor ``\E[8m`` 73 it Init tabs ``8`` 74 kDC Shifted delete-char key ``\E[3;2~`` 75 kDC3 Alt delete-char key ``\E[3;3~`` 76 kDC4 Alt-Shift delete-char key ``\E[3;4~`` 77 kDC5 Ctrl delete-char key ``\E[3;5~`` 78 kDC6 Ctrl-Shift delete-char key ``\E[3;6~`` 79 kDC7 Ctrl-Alt delete-char key ``\E[3;7~`` 80 kDN Shifted down-arrow key ``\E[1;2B`` 81 kDN3 Alt down-arrow key ``\E[1;3B`` 82 kDN4 Alt-Shift down-arrow key ``\E[1;4B`` 83 kDN5 Ctrl down-arrow key ``\E[1;5B`` 84 kDN6 Ctrl-Shift down-arrow key ``\E[1;6B`` 85 kDN7 Ctrl-Alt down-arrow key ``\E[1;7B`` 86 kEND Shifted end key ``\E[1;2F`` 87 kEND3 Alt end key ``\E[1;3F`` 88 kEND4 Alt-Shift end key ``\E[1;4F`` 89 kEND5 Ctrl end key ``\E[1;5F`` 90 kEND6 Ctrl-Shift end key ``\E[1;6F`` 91 kEND7 Ctrl-Alt end key ``\E[1;7F`` 92 kHOM Shifted home key ``\E[1;2H`` 93 kHOM3 Alt home key ``\E[1;3H`` 94 kHOM4 Alt-Shift home key ``\E[1;4H`` 95 kHOM5 Ctrl home key ``\E[1;5H`` 96 kHOM6 Ctrl-Shift home key ``\E[1;6H`` 97 kHOM7 Ctrl-Alt home key ``\E[1;7H`` 98 kIC Shifted insert-char key ``\E[2;2~`` 99 kIC3 Alt insert-char key ``\E[2;3~`` 100 kIC4 Alt-Shift insert-char key ``\E[2;4~`` 101 kIC5 Ctrl insert-char key ``\E[2;5~`` 102 kIC6 Ctrl-Shift insert-char key ``\E[2;6~`` 103 kIC7 Ctrl-Alt insert-char key ``\E[2;7~`` 104 kLFT Shifted left-arrow key ``\E[1;2D`` 105 kLFT3 Alt left-arrow key ``\E[1;3D`` 106 kLFT4 Alt-Shift left-arrow key ``\E[1;4D`` 107 kLFT5 Ctrl left-arrow key ``\E[1;5D`` 108 kLFT6 Ctrl-Shift left-arrow key ``\E[1;6D`` 109 kLFT7 Ctrl-Alt left-arrow key ``\E[1;7D`` 110 kNXT Shifted next-page key ``\E[6;2~`` 111 kNXT3 Alt next-page key ``\E[6;3~`` 112 kNXT4 Alt-Shift next-page key ``\E[6;4~`` 113 kNXT5 Ctrl next-page key ``\E[6;5~`` 114 kNXT6 Ctrl-Shift next-page key ``\E[6;6~`` 115 kNXT7 Ctrl-Alt next-page key ``\E[6;7~`` 116 kPRV Shifted previous-page key ``\E[5;2~`` 117 kPRV3 Alt previous-page key ``\E[5;3~`` 118 kPRV4 Alt-Shift previous-page key ``\E[5;4~`` 119 kPRV5 Ctrl previous-page key ``\E[5;5~`` 120 kPRV6 Ctrl-Shift previous-page key ``\E[5;6~`` 121 kPRV7 Ctrl-Alt previous-page key ``\E[5;7~`` 122 kRIT Shifted right-arrow key ``\E[1;2C`` 123 kRIT3 Alt right-arrow key ``\E[1;3C`` 124 kRIT4 Alt-Shift right-arrow key ``\E[1;4C`` 125 kRIT5 Ctrl right-arrow key ``\E[1;5C`` 126 kRIT6 Ctrl-Shift right-arrow key ``\E[1;6C`` 127 kRIT7 Ctrl-Alt right-arrow key ``\E[1;7C`` 128 kUP Shifted up-arrow key ``\E[1;2A`` 129 kUP3 Alt up-arrow key ``\E[1;3A`` 130 kUP4 Alt-Shift up-arrow key ``\E[1;4A`` 131 kUP5 Ctrl up-arrow key ``\E[1;5A`` 132 kUP6 Ctrl-Shift up-arrow key ``\E[1;6A`` 133 kUP7 Ctrl-Alt up-arrow key ``\E[1;7A`` 134 kbs Backspace key ```` 135 kcbt Back-tab key ``\E[Z`` 136 kcub1 Left arrow key ``\EOD`` 137 kcud1 Down arrow key ``\EOB`` 138 kcuf1 Right arrow key ``\EOC`` 139 kcuu1 Up arrow key ``\EOA`` 140 kdch1 Delete character key ``\E[3~`` 141 kend End key ``\EOF`` 142 kent Enter/send key ``\EOM`` 143 kf1 Function key F1 ``\EOP`` 144 kf10 Function key F10 ``\E[21~`` 145 kf11 Function key F11 ``\E[23~`` 146 kf12 Function key F12 ``\E[24~`` 147 kf2 Function key F2 ``\EOQ`` 148 kf3 Function key F3 ``\EOR`` 149 kf4 Function key F4 ``\EOS`` 150 kf5 Function key F5 ``\E[15~`` 151 kf6 Function key F6 ``\E[17~`` 152 kf7 Function key F7 ``\E[18~`` 153 kf8 Function key F8 ``\E[19~`` 154 kf9 Function key F9 ``\E[20~`` 155 khome Home key ``\EOH`` 156 kich1 Insert character key ``\E[2~`` 157 kind Scroll-down key ``\E[1;2B`` 158 km Has meta key *(empty)* 159 kmous Mouse key ``\E[<`` 160 knp Next page key ``\E[6~`` 161 kpp Previous page key ``\E[5~`` 162 kri Scroll-up key ``\E[1;2A`` 163 kxIN Keyboard in (kitty) ``\E[I`` 164 kxOUT Keyboard out (kitty) ``\E[O`` 165 lines Lines ``24`` 166 mc5i Will not echo input *(empty)* 167 mir Move in insert mode *(empty)* 168 msgr Move in standout mode *(empty)* 169 npc No pad character *(empty)* 170 oc Original colors ``\E]104\a`` 171 op Original pair ``\E[39;49m`` 172 pairs Max color pairs ``32767`` 173 rc Restore cursor ``\E8`` 174 rep Repeat character ``%p1%c\E[%p2%{1}%-%db`` 175 rev Enter reverse mode ``\E[7m`` 176 ri Reverse index ``\EM`` 177 rin Scroll reverse n ``\E[%p1%dT`` 178 ritm Exit italics mode ``\E[23m`` 179 rmacs Exit alternate charset mode ``\E(B`` 180 rmam Disable line wrap ``\E[?7l`` 181 rmcup Exit alt screen ``\E[?1049l`` 182 rmir Exit insert mode ``\E[4l`` 183 rmkx Keypad local mode ``\E[?1l\E>`` 184 rmso Exit standout mode ``\E[27m`` 185 rmul Exit underline mode ``\E[24m`` 186 rs1 Reset string 1 ``\E]\E\\Ec`` 187 rv Exit reverse mode (kitty) ``\E\[[0-9]+;[0-9]+;[0-9]+c`` 188 sc Save cursor ``\E7`` 189 setab Set background color ``\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%...`` 190 setaf Set foreground color ``\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p...`` 191 setrgbb Set RGB background ``\E[48:2:%p1%d:%p2%d:%p3%dm`` 192 setrgbf Set RGB foreground ``\E[38:2:%p1%d:%p2%d:%p3%dm`` 193 sgr Set attributes ``%?%p9%t\E(0%e\E(B%;\E[0%?%p6%t;1%;%?%p5%t;2%;%?%p2%t;4%;%...`` 194 sgr0 Reset attributes ``\E(B\E[m`` 195 sitm Enter italics mode ``\E[3m`` 196 smacs Enter alternate charset mode ``\E(0`` 197 smam Enable line wrap ``\E[?7h`` 198 smcup Enter alt screen ``\E[?1049h`` 199 smir Enter insert mode ``\E[4h`` 200 smkx Keypad transmit mode ``\E[?1h\E=`` 201 smso Enter standout mode ``\E[7m`` 202 smul Enter underline mode ``\E[4m`` 203 tbc Clear all tabs ``\E[3g`` 204 tsl To status line ``\E]2;`` 205 u6 CPR response format ``\E[%i%d;%dR`` 206 u7 CPR request ``\E[6n`` 207 u8 DA response format ``\E[?%[;0123456789]c`` 208 u9 DA request ``\E[c`` 209 vpa Vertical position ``\E[%i%p1%dd`` 210 xenl Newline glitch *(empty)* 211 xm Exit marks mode (kitty) ``\E[<%i%p3%d;%p1%d;%p2%d;%?%p4%tM%em%;`` 212 xr Exit reset mode (kitty) ``\EP>\|[ -~]+a\E\`` === ============ ============================================= ================================================================ The ``XTGETTCAP`` sequence (``DCS + q Pt ST``) allows applications to query terminfo capabilities directly from the terminal emulator, rather than relying on the system terminfo database. .. _ghosttytextsizing: Text Sizing Protocol (OSC 66) +++++++++++++++++++++++++++++ *ghostty* does not support the `Text Sizing protocol`_. .. _`Text Sizing protocol`: https://sw.kovidgoyal.net/kitty/text-sizing-protocol/ .. _ghosttytruecolor: Truecolor Support +++++++++++++++++ *ghostty* supports 24-bit truecolor, detectable via: - XTGETTCAP (RGB capability): **yes (RGB)** - DECRQSS (truecolor probe): **yes (probe)** - COLORTERM: **yes (truecolor)** .. _ghosttyosc52: OSC 52 Clipboard Support ++++++++++++++++++++++++ *ghostty* supports OSC 52 clipboard operations (detected via DA1 extension 52 + XTGETTCAP Ms). - DA1 extension 52: **yes** - XTGETTCAP Ms: **yes** .. _ghosttyidentification: Terminal Identification +++++++++++++++++++++++ *ghostty* is identified as **ghostty** version **1.3.2-main-+3706abab0** (detected via XTVERSION + XTGETTCAP TN). - XTVERSION (raw): **ghostty 1.3.1-arch2** - XTVERSION: **yes** - XTGETTCAP TN: **yes** (xterm-ghostty) - ENQ: **no** - TERM_PROGRAM: **yes** (ghostty) - TERM: **yes** (xterm-ghostty) .. _ghosttyreproduce: Reproduction ++++++++++++ To reproduce these results for *ghostty*, install and run ucs-detect_ with the following commands:: uvx ucs-detect --rerun data/ghostty.yaml .. _ghosttytime: .. _ghosttyresources: Test Performance ++++++++++++++++ The test suite completed in **7.01 seconds** (7s). - **Mean CPU**: 100.6% - **Mean RSS**: 275.2 MB - **Total time**: 7.0s .. figure:: ../_static/profiles/ghostty_cpu.png :alt: CPU usage over time :width: 600px CPU usage during test execution for *ghostty*. .. figure:: ../_static/profiles/ghostty_rss.png :alt: RSS memory over time :width: 600px RSS memory usage during test execution for *ghostty*. .. figure:: ../_static/profiles/ghostty_time.png :alt: Duration comparison :width: 600px Test duration for *ghostty* compared to all other terminals. .. figure:: ../_static/profiles/ghostty_cpu_vs_time.png :alt: CPU % vs Duration :width: 600px CPU % vs duration trade-off for *ghostty*. .. _`printf(1)`: https://www.man7.org/linux/man-pages/man1/printf.1.html .. _`wcwidth.wcswidth()`: https://wcwidth.readthedocs.io/en/latest/intro.html .. _`ucs-detect`: https://github.com/jquast/ucs-detect .. _`ttyscan`: https://github.com/jquast/ttyscan .. _`DEC Private Modes`: https://blessed.readthedocs.io/en/latest/dec_modes.html .. _`OSC 52`: https://dev.to/djmitche/clipboards-terminals-and-linux-3pk5 .. _`XTGETTCAP`: https://codeberg.org/dnkl/foot#xtgettcap .. _`Truecolor`: https://github.com/termstandard/colors/blob/master/README.md .. _`Kitty graphics`: https://sw.kovidgoyal.net/kitty/graphics-protocol/