{ "ghosttyVersion": "1.4.0", "options": [ { "key": "language", "zigType": "?[:0]const u8", "kind": "text", "doc": "Set Ghostty's graphical user interface language to a language other than the\nsystem default language. For example:\n\n language = de\n\nwill force the strings in Ghostty's graphical user interface to be in German\nrather than the system default.\n\nThis will not affect the language used by programs run _within_ Ghostty.\nThose will continue to use the default system language. There are also many\nnon-GUI elements in Ghostty that are not translated - this setting will have\nno effect on those.\n\nWarning: This setting cannot be reloaded at runtime. To change the language\nyou must fully restart Ghostty.\n\nGTK only.\nAvailable since 1.3.0.", "defaults": [ "" ] }, { "key": "font-family", "zigType": "RepeatableString", "kind": "font", "repeatable": true, "doc": "The font families to use.\n\nYou can generate the list of valid values using the CLI:\n\n ghostty +list-fonts\n\nThis configuration can be repeated multiple times to specify preferred\nfallback fonts when the requested codepoint is not available in the primary\nfont. This is particularly useful for multiple languages, symbolic fonts,\netc.\n\nNotes on emoji specifically: On macOS, Ghostty by default will always use\nApple Color Emoji and on Linux will always use Noto Emoji. You can\noverride this behavior by specifying a font family here that contains\nemoji glyphs.\n\nThe specific styles (bold, italic, bold italic) do not need to be\nexplicitly set. If a style is not set, then the regular style (font-family)\nwill be searched for stylistic variants. If a stylistic variant is not\nfound, Ghostty will use the regular style. This prevents falling back to a\ndifferent font family just to get a style such as bold. This also applies\nif you explicitly specify a font family for a style. For example, if you\nset `font-family-bold = FooBar` and \"FooBar\" cannot be found, Ghostty will\nuse whatever font is set for `font-family` for the bold style.\n\nFinally, some styles may be synthesized if they are not supported.\nFor example, if a font does not have an italic style and no alternative\nitalic font is specified, Ghostty will synthesize an italic style by\napplying a slant to the regular style. If you want to disable these\nsynthesized styles then you can use the `font-style` configurations\nas documented below.\n\nYou can disable styles completely by using the `font-style` set of\nconfigurations. See the documentation for `font-style` for more information.\n\nIf you want to overwrite a previous set value rather than append a fallback,\nspecify the value as `\"\"` (empty string) to reset the list and then set the\nnew values. For example:\n\n font-family = \"\"\n font-family = \"My Favorite Font\"\n\nSetting any of these as CLI arguments will automatically clear the\nvalues set in configuration files so you don't need to specify\n`--font-family=\"\"` before setting a new value. You only need to specify\nthis within config files if you want to clear previously set values in\nconfiguration files or on the CLI if you want to clear values set on the\nCLI.", "defaults": [ "" ] }, { "key": "font-family-bold", "zigType": "RepeatableString", "kind": "font", "repeatable": true, "doc": "The font families to use.\n\nYou can generate the list of valid values using the CLI:\n\n ghostty +list-fonts\n\nThis configuration can be repeated multiple times to specify preferred\nfallback fonts when the requested codepoint is not available in the primary\nfont. This is particularly useful for multiple languages, symbolic fonts,\netc.\n\nNotes on emoji specifically: On macOS, Ghostty by default will always use\nApple Color Emoji and on Linux will always use Noto Emoji. You can\noverride this behavior by specifying a font family here that contains\nemoji glyphs.\n\nThe specific styles (bold, italic, bold italic) do not need to be\nexplicitly set. If a style is not set, then the regular style (font-family)\nwill be searched for stylistic variants. If a stylistic variant is not\nfound, Ghostty will use the regular style. This prevents falling back to a\ndifferent font family just to get a style such as bold. This also applies\nif you explicitly specify a font family for a style. For example, if you\nset `font-family-bold = FooBar` and \"FooBar\" cannot be found, Ghostty will\nuse whatever font is set for `font-family` for the bold style.\n\nFinally, some styles may be synthesized if they are not supported.\nFor example, if a font does not have an italic style and no alternative\nitalic font is specified, Ghostty will synthesize an italic style by\napplying a slant to the regular style. If you want to disable these\nsynthesized styles then you can use the `font-style` configurations\nas documented below.\n\nYou can disable styles completely by using the `font-style` set of\nconfigurations. See the documentation for `font-style` for more information.\n\nIf you want to overwrite a previous set value rather than append a fallback,\nspecify the value as `\"\"` (empty string) to reset the list and then set the\nnew values. For example:\n\n font-family = \"\"\n font-family = \"My Favorite Font\"\n\nSetting any of these as CLI arguments will automatically clear the\nvalues set in configuration files so you don't need to specify\n`--font-family=\"\"` before setting a new value. You only need to specify\nthis within config files if you want to clear previously set values in\nconfiguration files or on the CLI if you want to clear values set on the\nCLI.", "defaults": [ "" ] }, { "key": "font-family-italic", "zigType": "RepeatableString", "kind": "font", "repeatable": true, "doc": "The font families to use.\n\nYou can generate the list of valid values using the CLI:\n\n ghostty +list-fonts\n\nThis configuration can be repeated multiple times to specify preferred\nfallback fonts when the requested codepoint is not available in the primary\nfont. This is particularly useful for multiple languages, symbolic fonts,\netc.\n\nNotes on emoji specifically: On macOS, Ghostty by default will always use\nApple Color Emoji and on Linux will always use Noto Emoji. You can\noverride this behavior by specifying a font family here that contains\nemoji glyphs.\n\nThe specific styles (bold, italic, bold italic) do not need to be\nexplicitly set. If a style is not set, then the regular style (font-family)\nwill be searched for stylistic variants. If a stylistic variant is not\nfound, Ghostty will use the regular style. This prevents falling back to a\ndifferent font family just to get a style such as bold. This also applies\nif you explicitly specify a font family for a style. For example, if you\nset `font-family-bold = FooBar` and \"FooBar\" cannot be found, Ghostty will\nuse whatever font is set for `font-family` for the bold style.\n\nFinally, some styles may be synthesized if they are not supported.\nFor example, if a font does not have an italic style and no alternative\nitalic font is specified, Ghostty will synthesize an italic style by\napplying a slant to the regular style. If you want to disable these\nsynthesized styles then you can use the `font-style` configurations\nas documented below.\n\nYou can disable styles completely by using the `font-style` set of\nconfigurations. See the documentation for `font-style` for more information.\n\nIf you want to overwrite a previous set value rather than append a fallback,\nspecify the value as `\"\"` (empty string) to reset the list and then set the\nnew values. For example:\n\n font-family = \"\"\n font-family = \"My Favorite Font\"\n\nSetting any of these as CLI arguments will automatically clear the\nvalues set in configuration files so you don't need to specify\n`--font-family=\"\"` before setting a new value. You only need to specify\nthis within config files if you want to clear previously set values in\nconfiguration files or on the CLI if you want to clear values set on the\nCLI.", "defaults": [ "" ] }, { "key": "font-family-bold-italic", "zigType": "RepeatableString", "kind": "font", "repeatable": true, "doc": "The font families to use.\n\nYou can generate the list of valid values using the CLI:\n\n ghostty +list-fonts\n\nThis configuration can be repeated multiple times to specify preferred\nfallback fonts when the requested codepoint is not available in the primary\nfont. This is particularly useful for multiple languages, symbolic fonts,\netc.\n\nNotes on emoji specifically: On macOS, Ghostty by default will always use\nApple Color Emoji and on Linux will always use Noto Emoji. You can\noverride this behavior by specifying a font family here that contains\nemoji glyphs.\n\nThe specific styles (bold, italic, bold italic) do not need to be\nexplicitly set. If a style is not set, then the regular style (font-family)\nwill be searched for stylistic variants. If a stylistic variant is not\nfound, Ghostty will use the regular style. This prevents falling back to a\ndifferent font family just to get a style such as bold. This also applies\nif you explicitly specify a font family for a style. For example, if you\nset `font-family-bold = FooBar` and \"FooBar\" cannot be found, Ghostty will\nuse whatever font is set for `font-family` for the bold style.\n\nFinally, some styles may be synthesized if they are not supported.\nFor example, if a font does not have an italic style and no alternative\nitalic font is specified, Ghostty will synthesize an italic style by\napplying a slant to the regular style. If you want to disable these\nsynthesized styles then you can use the `font-style` configurations\nas documented below.\n\nYou can disable styles completely by using the `font-style` set of\nconfigurations. See the documentation for `font-style` for more information.\n\nIf you want to overwrite a previous set value rather than append a fallback,\nspecify the value as `\"\"` (empty string) to reset the list and then set the\nnew values. For example:\n\n font-family = \"\"\n font-family = \"My Favorite Font\"\n\nSetting any of these as CLI arguments will automatically clear the\nvalues set in configuration files so you don't need to specify\n`--font-family=\"\"` before setting a new value. You only need to specify\nthis within config files if you want to clear previously set values in\nconfiguration files or on the CLI if you want to clear values set on the\nCLI.", "defaults": [ "" ] }, { "key": "font-style", "zigType": "FontStyle", "kind": "choice", "values": [ "default", "false" ], "hint": "a style name such as Heavy, or default / false", "doc": "The named font style to use for each of the requested terminal font styles.\nThis looks up the style based on the font style string advertised by the\nfont itself. For example, \"Iosevka Heavy\" has a style of \"Heavy\".\n\nYou can also use these fields to completely disable a font style. If you set\nthe value of the configuration below to literal `false` then that font style\nwill be disabled. If the running program in the terminal requests a disabled\nfont style, the regular font style will be used instead.\n\nThese are only valid if its corresponding font-family is also specified. If\nno font-family is specified, then the font-style is ignored unless you're\ndisabling the font style.", "defaults": [ "default" ] }, { "key": "font-style-bold", "zigType": "FontStyle", "kind": "choice", "values": [ "default", "false" ], "hint": "a style name such as Heavy, or default / false", "doc": "The named font style to use for each of the requested terminal font styles.\nThis looks up the style based on the font style string advertised by the\nfont itself. For example, \"Iosevka Heavy\" has a style of \"Heavy\".\n\nYou can also use these fields to completely disable a font style. If you set\nthe value of the configuration below to literal `false` then that font style\nwill be disabled. If the running program in the terminal requests a disabled\nfont style, the regular font style will be used instead.\n\nThese are only valid if its corresponding font-family is also specified. If\nno font-family is specified, then the font-style is ignored unless you're\ndisabling the font style.", "defaults": [ "default" ] }, { "key": "font-style-italic", "zigType": "FontStyle", "kind": "choice", "values": [ "default", "false" ], "hint": "a style name such as Heavy, or default / false", "doc": "The named font style to use for each of the requested terminal font styles.\nThis looks up the style based on the font style string advertised by the\nfont itself. For example, \"Iosevka Heavy\" has a style of \"Heavy\".\n\nYou can also use these fields to completely disable a font style. If you set\nthe value of the configuration below to literal `false` then that font style\nwill be disabled. If the running program in the terminal requests a disabled\nfont style, the regular font style will be used instead.\n\nThese are only valid if its corresponding font-family is also specified. If\nno font-family is specified, then the font-style is ignored unless you're\ndisabling the font style.", "defaults": [ "default" ] }, { "key": "font-style-bold-italic", "zigType": "FontStyle", "kind": "choice", "values": [ "default", "false" ], "hint": "a style name such as Heavy, or default / false", "doc": "The named font style to use for each of the requested terminal font styles.\nThis looks up the style based on the font style string advertised by the\nfont itself. For example, \"Iosevka Heavy\" has a style of \"Heavy\".\n\nYou can also use these fields to completely disable a font style. If you set\nthe value of the configuration below to literal `false` then that font style\nwill be disabled. If the running program in the terminal requests a disabled\nfont style, the regular font style will be used instead.\n\nThese are only valid if its corresponding font-family is also specified. If\nno font-family is specified, then the font-style is ignored unless you're\ndisabling the font style.", "defaults": [ "default" ] }, { "key": "font-synthetic-style", "zigType": "FontSyntheticStyle", "kind": "flags", "flags": [ "bold", "italic", "bold-italic" ], "doc": "Control whether Ghostty should synthesize a style if the requested style is\nnot available in the specified font-family.\n\nGhostty can synthesize bold, italic, and bold italic styles if the font\ndoes not have a specific style. For bold, this is done by drawing an\noutline around the glyph of varying thickness. For italic, this is done by\napplying a slant to the glyph. For bold italic, both of these are applied.\n\nSynthetic styles are not perfect and will generally not look as good\nas a font that has the style natively. However, they are useful to\nprovide styled text when the font does not have the style.\n\nSet this to \"false\" or \"true\" to disable or enable synthetic styles\ncompletely. You can disable specific styles using \"no-bold\", \"no-italic\",\nand \"no-bold-italic\". You can disable multiple styles by separating them\nwith a comma. For example, \"no-bold,no-italic\".\n\nAvailable style keys are: `bold`, `italic`, `bold-italic`.\n\nIf synthetic styles are disabled, then the regular style will be used\ninstead if the requested style is not available. If the font has the\nrequested style, then the font will be used as-is since the style is\nnot synthetic.\n\nWarning: An easy mistake is to disable `bold` or `italic` but not\n`bold-italic`. Disabling only `bold` or `italic` will NOT disable either\nin the `bold-italic` style. If you want to disable `bold-italic`, you must\nexplicitly disable it. You cannot partially disable `bold-italic`.\n\nBy default, synthetic styles are enabled.", "defaults": [ "bold,italic,bold-italic" ] }, { "key": "font-feature", "zigType": "RepeatableString", "kind": "text", "repeatable": true, "hint": "e.g. -calt, +ss01, cv01=2", "doc": "Apply a font feature. To enable multiple font features you can repeat\nthis multiple times or use a comma-separated list of feature settings.\n\nThe syntax for feature settings is as follows, where `feat` is a feature:\n\n * Enable features with e.g. `feat`, `+feat`, `feat on`, `feat=1`.\n * Disabled features with e.g. `-feat`, `feat off`, `feat=0`.\n * Set a feature value with e.g. `feat=2`, `feat = 3`, `feat 4`.\n * Feature names may be wrapped in quotes, meaning this config should be\n syntactically compatible with the `font-feature-settings` CSS property.\n\nThe syntax is fairly loose, but invalid settings will be silently ignored.\n\nThe font feature will apply to all fonts rendered by Ghostty. A future\nenhancement will allow targeting specific faces.\n\nTo disable programming ligatures, use `-calt` since this is the typical\nfeature name for programming ligatures. To look into what font features\nyour font has and what they do, use a font inspection tool such as\n[fontdrop.info](https://fontdrop.info).\n\nTo generally disable most ligatures, use `-calt, -liga, -dlig`.", "defaults": [ "" ] }, { "key": "font-size", "zigType": "f32", "kind": "float", "min": 1, "doc": "Font size in points. This value can be a non-integer and the nearest integer\npixel size will be selected. If you have a high dpi display where 1pt = 2px\nthen you can get an odd numbered pixel size by specifying a half point.\n\nFor example, 13.5pt @ 2px/pt = 27px\n\nChanging this configuration at runtime will only affect existing\nterminals that have NOT manually adjusted their font size in some way\n(e.g. increased or decreased the font size). Terminals that have manually\nadjusted their font size will retain their manually adjusted size.\nOtherwise, the font size of existing terminals will be updated on\nreload.\n\nOn Linux with GTK, font size is scaled according to both display-wide and\ntext-specific scaling factors, which are often managed by your desktop\nenvironment (e.g. the GNOME display scale and large text settings).", "defaults": [ "13" ] }, { "key": "font-variation", "zigType": "RepeatableFontVariation", "kind": "text", "repeatable": true, "hint": "axis=value, e.g. wght=600", "doc": "A repeatable configuration to set one or more font variations values for\na variable font. A variable font is a single font, usually with a filename\nending in `-VF.ttf` or `-VF.otf` that contains one or more configurable axes\nfor things such as weight, slant, etc. Not all fonts support variations;\nonly fonts that explicitly state they are variable fonts will work.\n\nThe format of this is `id=value` where `id` is the axis identifier. An axis\nidentifier is always a 4 character string, such as `wght`. To get the list\nof supported axes, look at your font documentation or use a font inspection\ntool.\n\nInvalid ids and values are usually ignored. For example, if a font only\nsupports weights from 100 to 700, setting `wght=800` will do nothing (it\nwill not be clamped to 700). You must consult your font's documentation to\nsee what values are supported.\n\nCommon axes are: `wght` (weight), `slnt` (slant), `ital` (italic), `opsz`\n(optical size), `wdth` (width), `GRAD` (gradient), etc.", "defaults": [ "" ] }, { "key": "font-variation-bold", "zigType": "RepeatableFontVariation", "kind": "text", "repeatable": true, "hint": "axis=value, e.g. wght=600", "doc": "A repeatable configuration to set one or more font variations values for\na variable font. A variable font is a single font, usually with a filename\nending in `-VF.ttf` or `-VF.otf` that contains one or more configurable axes\nfor things such as weight, slant, etc. Not all fonts support variations;\nonly fonts that explicitly state they are variable fonts will work.\n\nThe format of this is `id=value` where `id` is the axis identifier. An axis\nidentifier is always a 4 character string, such as `wght`. To get the list\nof supported axes, look at your font documentation or use a font inspection\ntool.\n\nInvalid ids and values are usually ignored. For example, if a font only\nsupports weights from 100 to 700, setting `wght=800` will do nothing (it\nwill not be clamped to 700). You must consult your font's documentation to\nsee what values are supported.\n\nCommon axes are: `wght` (weight), `slnt` (slant), `ital` (italic), `opsz`\n(optical size), `wdth` (width), `GRAD` (gradient), etc.", "defaults": [ "" ] }, { "key": "font-variation-italic", "zigType": "RepeatableFontVariation", "kind": "text", "repeatable": true, "hint": "axis=value, e.g. wght=600", "doc": "A repeatable configuration to set one or more font variations values for\na variable font. A variable font is a single font, usually with a filename\nending in `-VF.ttf` or `-VF.otf` that contains one or more configurable axes\nfor things such as weight, slant, etc. Not all fonts support variations;\nonly fonts that explicitly state they are variable fonts will work.\n\nThe format of this is `id=value` where `id` is the axis identifier. An axis\nidentifier is always a 4 character string, such as `wght`. To get the list\nof supported axes, look at your font documentation or use a font inspection\ntool.\n\nInvalid ids and values are usually ignored. For example, if a font only\nsupports weights from 100 to 700, setting `wght=800` will do nothing (it\nwill not be clamped to 700). You must consult your font's documentation to\nsee what values are supported.\n\nCommon axes are: `wght` (weight), `slnt` (slant), `ital` (italic), `opsz`\n(optical size), `wdth` (width), `GRAD` (gradient), etc.", "defaults": [ "" ] }, { "key": "font-variation-bold-italic", "zigType": "RepeatableFontVariation", "kind": "text", "repeatable": true, "hint": "axis=value, e.g. wght=600", "doc": "A repeatable configuration to set one or more font variations values for\na variable font. A variable font is a single font, usually with a filename\nending in `-VF.ttf` or `-VF.otf` that contains one or more configurable axes\nfor things such as weight, slant, etc. Not all fonts support variations;\nonly fonts that explicitly state they are variable fonts will work.\n\nThe format of this is `id=value` where `id` is the axis identifier. An axis\nidentifier is always a 4 character string, such as `wght`. To get the list\nof supported axes, look at your font documentation or use a font inspection\ntool.\n\nInvalid ids and values are usually ignored. For example, if a font only\nsupports weights from 100 to 700, setting `wght=800` will do nothing (it\nwill not be clamped to 700). You must consult your font's documentation to\nsee what values are supported.\n\nCommon axes are: `wght` (weight), `slnt` (slant), `ital` (italic), `opsz`\n(optical size), `wdth` (width), `GRAD` (gradient), etc.", "defaults": [ "" ] }, { "key": "font-codepoint-map", "zigType": "RepeatableCodepointMap", "kind": "text", "repeatable": true, "hint": "U+E000-U+E0FF,U+F000=Font Family", "doc": "Force one or a range of Unicode codepoints to map to a specific named font.\nThis is useful if you want to support special symbols or if you want to use\nspecific glyphs that render better for your specific font.\n\nThe syntax is `codepoint=fontname` where `codepoint` is either a single\ncodepoint or a range. Codepoints must be specified as full Unicode\nhex values, such as `U+ABCD`. Codepoints ranges are specified as\n`U+ABCD-U+DEFG`. You can specify multiple ranges for the same font separated\nby commas, such as `U+ABCD-U+DEFG,U+1234-U+5678=fontname`. The font name is\nthe same value as you would use for `font-family`.\n\nThis configuration can be repeated multiple times to specify multiple\ncodepoint mappings.\n\nChanging this configuration at runtime will only affect new terminals,\ni.e. new windows, tabs, etc.", "defaults": [ "" ] }, { "key": "clipboard-codepoint-map", "zigType": "RepeatableClipboardCodepointMap", "kind": "text", "repeatable": true, "hint": "U+2500-U+257F=U+002B", "doc": "Map specific Unicode codepoints to replacement values when copying text\nto clipboard.\n\nThis configuration allows you to replace specific Unicode characters with\nother characters or strings when copying terminal content to the clipboard.\nThis is useful for converting special terminal symbols to more compatible\ncharacters for pasting into other applications.\n\nThe syntax is similar to `font-codepoint-map`:\n- Single codepoint: `U+1234=U+ABCD` or `U+1234=replacement_text`\n- Codepoint range: `U+1234-U+5678=U+ABCD`\n\nExamples:\n- `clipboard-codepoint-map = U+2500=U+002D` (box drawing horizontal → hyphen)\n- `clipboard-codepoint-map = U+2502=U+007C` (box drawing vertical → pipe)\n- `clipboard-codepoint-map = U+03A3=SUM` (Greek sigma → \"SUM\")\n\nThis configuration can be repeated multiple times to specify multiple\nmappings. Later entries take priority over earlier ones for overlapping\nranges.\n\nNote: This only applies to text copying operations, not URL copying.", "defaults": [ "" ] }, { "key": "font-thicken", "zigType": "bool", "kind": "bool", "doc": "Draw fonts with a thicker stroke, if supported.\nThis is currently only supported on macOS.", "defaults": [ "false" ] }, { "key": "font-thicken-strength", "zigType": "u8", "kind": "int", "min": 0, "max": 255, "doc": "Strength of thickening when `font-thicken` is enabled.\n\nValid values are integers between `0` and `255`. `0` does not correspond to\n*no* thickening, rather it corresponds to the lightest available thickening.\n\nHas no effect when `font-thicken` is set to `false`.\n\nThis is currently only supported on macOS.", "defaults": [ "255" ] }, { "key": "font-shaping-break", "zigType": "FontShapingBreak", "kind": "flags", "flags": [ "cursor" ], "doc": "Locations to break font shaping into multiple runs.\n\nA \"run\" is a contiguous segment of text that is shaped together. \"Shaping\"\nis the process of converting text (codepoints) into glyphs (renderable\ncharacters). This is how ligatures are formed, among other things.\nFor example, if a coding font turns \"!=\" into a single glyph, then it\nmust see \"!\" and \"=\" next to each other in a single run. When a run\nis broken, the text is shaped separately. To continue our example, if\n\"!\" is at the end of one run and \"=\" is at the start of the next run,\nthen the ligature will not be formed.\n\nGhostty breaks runs at certain points to improve readability or usability.\nFor example, Ghostty by default will break runs under the cursor so that\ntext editing can see the individual characters rather than a ligature.\nThis configuration lets you configure this behavior.\n\nCombine values with a comma to set multiple options. Prefix an\noption with \"no-\" to disable it. Enabling and disabling options\ncan be done at the same time.\n\nAvailable options:\n\n * `cursor` - Break runs under the cursor.\n\nAvailable since: 1.2.0", "defaults": [ "cursor" ] }, { "key": "alpha-blending", "zigType": "AlphaBlending", "kind": "enum", "values": [ "native", "linear", "linear-corrected" ], "doc": "What color space to use when performing alpha blending.\n\nThis affects the appearance of text and of any images with transparency.\nAdditionally, custom shaders will receive colors in the configured space.\n\nOn macOS the default is `native`, on all other platforms the default is\n`linear-corrected`.\n\nValid values:\n\n* `native` - Perform alpha blending in the native color space for the OS.\n On macOS this corresponds to Display P3, and on Linux it's sRGB.\n\n* `linear` - Perform alpha blending in linear space. This will eliminate\n the darkening artifacts around the edges of text that are very visible\n when certain color combinations are used (e.g. red / green), but makes\n dark text look much thinner than normal and light text much thicker.\n This is also sometimes known as \"gamma correction\".\n\n* `linear-corrected` - Same as `linear`, but with a correction step applied\n for text that makes it look nearly or completely identical to `native`,\n but without any of the darkening artifacts.\n\nAvailable since: 1.1.0", "defaults": [ "native" ] }, { "key": "adjust-cell-width", "zigType": "?MetricModifier", "kind": "metric", "doc": "All of the configurations behavior adjust various metrics determined by the\nfont. The values can be integers (1, -1, etc.) or a percentage (20%, -15%,\netc.). In each case, the values represent the amount to change the original\nvalue.\n\nFor example, a value of `1` increases the value by 1; it does not set it to\nliterally 1. A value of `20%` increases the value by 20%. And so on.\n\nThere is little to no validation on these values so the wrong values (e.g.\n`-100%`) can cause the terminal to be unusable. Use with caution and reason.\n\nSome values are clamped to minimum or maximum values. This can make it\nappear that certain values are ignored. For example, many `*-thickness`\nadjustments cannot go below 1px.\n\n`adjust-cell-height` has some additional behaviors to describe:\n\n * The font will be centered vertically in the cell.\n\n * The cursor will remain the same size as the font, but may be\n adjusted separately with `adjust-cursor-height`.\n\n * Powerline glyphs will be adjusted along with the cell height so\n that things like status lines continue to look aligned.", "defaults": [ "" ] }, { "key": "adjust-cell-height", "zigType": "?MetricModifier", "kind": "metric", "doc": "All of the configurations behavior adjust various metrics determined by the\nfont. The values can be integers (1, -1, etc.) or a percentage (20%, -15%,\netc.). In each case, the values represent the amount to change the original\nvalue.\n\nFor example, a value of `1` increases the value by 1; it does not set it to\nliterally 1. A value of `20%` increases the value by 20%. And so on.\n\nThere is little to no validation on these values so the wrong values (e.g.\n`-100%`) can cause the terminal to be unusable. Use with caution and reason.\n\nSome values are clamped to minimum or maximum values. This can make it\nappear that certain values are ignored. For example, many `*-thickness`\nadjustments cannot go below 1px.\n\n`adjust-cell-height` has some additional behaviors to describe:\n\n * The font will be centered vertically in the cell.\n\n * The cursor will remain the same size as the font, but may be\n adjusted separately with `adjust-cursor-height`.\n\n * Powerline glyphs will be adjusted along with the cell height so\n that things like status lines continue to look aligned.", "defaults": [ "" ] }, { "key": "adjust-font-baseline", "zigType": "?MetricModifier", "kind": "metric", "doc": "Distance in pixels or percentage adjustment from the bottom of the cell to the text baseline.\nIncrease to move baseline UP, decrease to move baseline DOWN.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-underline-position", "zigType": "?MetricModifier", "kind": "metric", "doc": "Distance in pixels or percentage adjustment from the top of the cell to the top of the underline.\nIncrease to move underline DOWN, decrease to move underline UP.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-underline-thickness", "zigType": "?MetricModifier", "kind": "metric", "doc": "Thickness in pixels of the underline.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-strikethrough-position", "zigType": "?MetricModifier", "kind": "metric", "doc": "Distance in pixels or percentage adjustment from the top of the cell to the top of the strikethrough.\nIncrease to move strikethrough DOWN, decrease to move strikethrough UP.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-strikethrough-thickness", "zigType": "?MetricModifier", "kind": "metric", "doc": "Thickness in pixels or percentage adjustment of the strikethrough.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-overline-position", "zigType": "?MetricModifier", "kind": "metric", "doc": "Distance in pixels or percentage adjustment from the top of the cell to the top of the overline.\nIncrease to move overline DOWN, decrease to move overline UP.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-overline-thickness", "zigType": "?MetricModifier", "kind": "metric", "doc": "Thickness in pixels or percentage adjustment of the overline.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-cursor-thickness", "zigType": "?MetricModifier", "kind": "metric", "doc": "Thickness in pixels or percentage adjustment of the bar cursor and outlined rect cursor.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-cursor-height", "zigType": "?MetricModifier", "kind": "metric", "doc": "Height in pixels or percentage adjustment of the cursor. Currently applies to all cursor types:\nbar, rect, and outlined rect.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-box-thickness", "zigType": "?MetricModifier", "kind": "metric", "doc": "Thickness in pixels or percentage adjustment of box drawing characters.\nSee the notes about adjustments in `adjust-cell-width`.", "defaults": [ "" ] }, { "key": "adjust-icon-height", "zigType": "?MetricModifier", "kind": "metric", "doc": "Height in pixels or percentage adjustment of maximum height for nerd font icons.\n\nA positive (negative) value will increase (decrease) the maximum icon\nheight. This may not affect all icons equally: the effect depends on whether\nthe default size of the icon is height-constrained, which in turn depends on\nthe aspect ratio of both the icon and your primary font.\n\nCertain icons designed for box drawing and terminal graphics, such as\nPowerline symbols, are not affected by this option.\n\nSee the notes about adjustments in `adjust-cell-width`.\n\nAvailable in: 1.2.0", "defaults": [ "" ] }, { "key": "grapheme-width-method", "zigType": "GraphemeWidthMethod", "kind": "enum", "values": [ "legacy", "unicode" ], "doc": "The method to use for calculating the cell width of a grapheme cluster.\nThe default value is `unicode` which uses the Unicode standard to determine\ngrapheme width. This results in correct grapheme width but may result in\ncursor-desync issues with some programs (such as shells) that may use a\nlegacy method such as `wcswidth`.\n\nValid values are:\n\n* `legacy` - Use a legacy method to determine grapheme width, such as\n wcswidth This maximizes compatibility with legacy programs but may result\n in incorrect grapheme width for certain graphemes such as skin-tone\n emoji, non-English characters, etc.\n\n This is called \"legacy\" and not something more specific because the\n behavior is undefined and we want to retain the ability to modify it.\n For example, we may or may not use libc `wcswidth` now or in the future.\n\n* `unicode` - Use the Unicode standard to determine grapheme width.\n\nIf a running program explicitly enables terminal mode 2027, then `unicode`\nwidth will be forced regardless of this configuration. When mode 2027 is\nreset, this configuration will be used again.\n\nThis configuration can be changed at runtime but will not affect existing\nterminals. Only new terminals will use the new configuration.", "defaults": [ "unicode" ] }, { "key": "freetype-load-flags", "zigType": "FreetypeLoadFlags", "kind": "flags", "flags": [ "hinting", "force-autohint", "monochrome", "autohint", "light" ], "doc": "FreeType load flags to enable. The format of this is a list of flags to\nenable separated by commas. If you prefix a flag with `no-` then it is\ndisabled. If you omit a flag, its default value is used, so you must\nexplicitly disable flags you don't want. You can also use `true` or `false`\nto turn all flags on or off.\n\nThis configuration only applies to Ghostty builds that use FreeType.\nThis is usually the case only for Linux builds. macOS uses CoreText\nand does not have an equivalent configuration.\n\nAvailable flags:\n\n * `hinting` - Enable or disable hinting. Enabled by default.\n\n * `force-autohint` - Always use the freetype auto-hinter instead of\n the font's native hinter. Disabled by default.\n\n * `monochrome` - Instructs renderer to use 1-bit monochrome rendering.\n This will disable anti-aliasing, and probably not look very good unless\n you're using a pixel font. Disabled by default.\n\n * `autohint` - Enable the freetype auto-hinter. Enabled by default.\n\n * `light` - Use a light hinting style, better preserving glyph shapes.\n This is the most common setting in GTK apps and therefore also Ghostty's\n default. This has no effect if `monochrome` is enabled. Enabled by\n default.\n\nExample: `hinting`, `no-hinting`, `force-autohint`, `no-force-autohint`", "defaults": [ "hinting,no-force-autohint,no-monochrome,autohint,light" ] }, { "key": "theme", "zigType": "?Theme", "kind": "theme", "doc": "A theme to use. This can be a built-in theme name, a custom theme\nname, or an absolute path to a custom theme file. Ghostty also supports\nspecifying a different theme to use for light and dark mode. Each\noption is documented below.\n\nIf the theme is an absolute pathname, Ghostty will attempt to load that\nfile as a theme. If that file does not exist or is inaccessible, an error\nwill be logged and no other directories will be searched.\n\nIf the theme is not an absolute pathname, two different directories will be\nsearched for a file name that matches the theme. This is case sensitive on\nsystems with case-sensitive filesystems. It is an error for a theme name to\ninclude path separators unless it is an absolute pathname.\n\nThe first directory is the `themes` subdirectory of your Ghostty\nconfiguration directory. This is `$XDG_CONFIG_HOME/ghostty/themes` or\n`~/.config/ghostty/themes`.\n\nThe second directory is the `themes` subdirectory of the Ghostty resources\ndirectory. Ghostty ships with a multitude of themes that will be installed\ninto this directory. On macOS, this list is in the\n`Ghostty.app/Contents/Resources/ghostty/themes` directory. On Linux, this\nlist is in the `share/ghostty/themes` directory (wherever you installed the\nGhostty \"share\" directory.\n\nTo see a list of available themes, run `ghostty +list-themes`.\n\nA theme file is simply another Ghostty configuration file. They share\nthe same syntax and same configuration options. A theme can set any valid\nconfiguration option so please do not use a theme file from an untrusted\nsource. The built-in themes are audited to only set safe configuration\noptions.\n\nSome options cannot be set within theme files. The reason these are not\nsupported should be self-evident. A theme file cannot set `theme` or\n`config-file`. At the time of writing this, Ghostty will not show any\nwarnings or errors if you set these options in a theme file but they will\nbe silently ignored.\n\nAny additional colors specified via background, foreground, palette, etc.\nwill override the colors specified in the theme.\n\nTo specify a different theme for light and dark mode, use the following\nsyntax: `light:theme-name,dark:theme-name`. For example:\n`light:Rose Pine Dawn,dark:Rose Pine`. Whitespace around all values are\ntrimmed and order of light and dark does not matter. Both light and dark\nmust be specified in this form. In this form, the theme used will be\nbased on the current desktop environment theme.\n\nThere are some known bugs with light/dark mode theming. These will\nbe fixed in a future update:\n\n - macOS: titlebar tabs style is not updated when switching themes.", "defaults": [ "" ] }, { "key": "background", "zigType": "Color", "kind": "color", "doc": "Background color for the window.\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.", "defaults": [ "#282c34" ] }, { "key": "foreground", "zigType": "Color", "kind": "color", "doc": "Foreground color for the window.\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.", "defaults": [ "#ffffff" ] }, { "key": "background-image", "zigType": "?Path", "kind": "path", "doc": "Background image for the terminal.\n\nThis should be a path to a PNG or JPEG file, other image formats are\nnot yet supported.\n\nThe background image is currently per-terminal, not per-window. If\nyou are a heavy split user, the background image will be repeated across\nsplits. A future improvement to Ghostty will address this.\n\nWARNING: Background images are currently duplicated in VRAM per-terminal.\nFor sufficiently large images, this could lead to a large increase in\nmemory usage (specifically VRAM usage). A future Ghostty improvement\nwill resolve this by sharing image textures across terminals.\n\nAvailable since: 1.2.0", "defaults": [ "" ] }, { "key": "background-image-opacity", "zigType": "f32", "kind": "float", "min": 0, "doc": "Background image opacity.\n\nThis is relative to the value of `background-opacity`.\n\nA value of `1.0` (the default) will result in the background image being\nplaced on top of the general background color, and then the combined result\nwill be adjusted to the opacity specified by `background-opacity`.\n\nA value less than `1.0` will result in the background image being mixed\nwith the general background color before the combined result is adjusted\nto the configured `background-opacity`.\n\nA value greater than `1.0` will result in the background image having a\nhigher opacity than the general background color. For instance, if the\nconfigured `background-opacity` is `0.5` and `background-image-opacity`\nis set to `1.5`, then the final opacity of the background image will be\n`0.5 * 1.5 = 0.75`.\n\nAvailable since: 1.2.0", "defaults": [ "1" ] }, { "key": "background-image-position", "zigType": "BackgroundImagePosition", "kind": "enum", "values": [ "top-left", "top-center", "top-right", "center-left", "center-center", "center-right", "bottom-left", "bottom-center", "bottom-right", "center" ], "doc": "Background image position.\n\nValid values are:\n * `top-left`\n * `top-center`\n * `top-right`\n * `center-left`\n * `center`\n * `center-right`\n * `bottom-left`\n * `bottom-center`\n * `bottom-right`\n\nThe default value is `center`.\n\nAvailable since: 1.2.0", "defaults": [ "center" ] }, { "key": "background-image-fit", "zigType": "BackgroundImageFit", "kind": "enum", "values": [ "contain", "cover", "stretch", "none" ], "doc": "Background image fit.\n\nValid values are:\n\n * `contain`\n\n Preserving the aspect ratio, scale the background image to the largest\n size that can still be contained within the terminal, so that the whole\n image is visible.\n\n * `cover`\n\n Preserving the aspect ratio, scale the background image to the smallest\n size that can completely cover the terminal. This may result in one or\n more edges of the image being clipped by the edge of the terminal.\n\n * `stretch`\n\n Stretch the background image to the full size of the terminal, without\n preserving the aspect ratio.\n\n * `none`\n\n Don't scale the background image.\n\nThe default value is `contain`.\n\nAvailable since: 1.2.0", "defaults": [ "contain" ] }, { "key": "background-image-repeat", "zigType": "bool", "kind": "bool", "doc": "Whether to repeat the background image or not.\n\nIf this is set to true, the background image will be repeated if there\nwould otherwise be blank space around it because it doesn't completely\nfill the terminal area.\n\nThe default value is `false`.\n\nAvailable since: 1.2.0", "defaults": [ "false" ] }, { "key": "selection-foreground", "zigType": "?TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The foreground and background color for selection. If this is not set, then\nthe selection color is just the inverted window background and foreground\n(note: not to be confused with the cell bg/fg).\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.\nSince version 1.2.0, this can also be set to `cell-foreground` to match\nthe cell foreground color, or `cell-background` to match the cell\nbackground color.", "defaults": [ "" ] }, { "key": "selection-background", "zigType": "?TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The foreground and background color for selection. If this is not set, then\nthe selection color is just the inverted window background and foreground\n(note: not to be confused with the cell bg/fg).\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.\nSince version 1.2.0, this can also be set to `cell-foreground` to match\nthe cell foreground color, or `cell-background` to match the cell\nbackground color.", "defaults": [ "" ] }, { "key": "selection-clear-on-typing", "zigType": "bool", "kind": "bool", "doc": "Whether to clear selected text when typing. This defaults to `true`.\nThis is typical behavior for most terminal emulators as well as\ntext input fields. If you set this to `false`, then the selected text\nwill not be cleared when typing.\n\n\"Typing\" is specifically defined as any non-modifier (shift, control,\nalt, etc.) keypress that produces data to be sent to the application\nrunning within the terminal (e.g. the shell). Additionally, selection\nis cleared when any preedit or composition state is started (e.g.\nwhen typing languages such as Japanese).\n\nIf this is `false`, then the selection can still be manually\ncleared by clicking once or by pressing `escape`.\n\nAvailable since: 1.2.0", "defaults": [ "true" ] }, { "key": "selection-clear-on-copy", "zigType": "bool", "kind": "bool", "doc": "Whether to clear selected text after copying. This defaults to `false`.\n\nWhen set to `true`, the selection will be automatically cleared after\nany copy operation that invokes the `copy_to_clipboard` keyboard binding.\nImportantly, this will not clear the selection if the copy operation\nwas invoked via `copy-on-select`.\n\nWhen set to `false`, the selection remains visible after copying, allowing\nto see what was copied and potentially perform additional operations\non the same selection.", "defaults": [ "false" ] }, { "key": "selection-word-chars", "zigType": "SelectionWordChars", "kind": "text", "doc": "Characters that mark word boundaries during text selection operations such\nas double-clicking. When selecting a word, the selection will stop at any\nof these characters.\n\nThis is similar to the `WORDCHARS` environment variable in zsh, except this\nspecifies the boundary characters rather than the word characters. The\ndefault includes common delimiters and punctuation that typically separate\nwords in code and prose.\n\nEach character in this string becomes a word boundary. Multi-byte UTF-8\ncharacters are supported, but only single codepoints can be specified.\nMulti-codepoint sequences (e.g. emoji) are not supported.\n\nThe null character (U+0000) is always treated as a boundary and does not\nneed to be included in this configuration.\n\nDefault: ``\\t '\"│`|:;,()[]{}\u003c\u003e$``\n\nTo add or remove specific characters, you can set this to a custom value.\nFor example, to treat semicolons as part of words:\n\n selection-word-chars = \"\\t '\\\"│`|:,()[]{}\u003c\u003e$\"\n\nAvailable since: 1.3.0", "defaults": [ " \t'\"│`|:;,()[]{}\u003c\u003e$" ] }, { "key": "minimum-contrast", "zigType": "f64", "kind": "float", "min": 1, "max": 21, "doc": "The minimum contrast ratio between the foreground and background colors.\nThe contrast ratio is a value between 1 and 21. A value of 1 allows for no\ncontrast (e.g. black on black). This value is the contrast ratio as defined\nby the [WCAG 2.0 specification](https://www.w3.org/TR/WCAG20/).\n\nIf you want to avoid invisible text (same color as background), a value of\n1.1 is a good value. If you want to avoid text that is difficult to read, a\nvalue of 3 or higher is a good value. The higher the value, the more likely\nthat text will become black or white.\n\nThis value does not apply to Emoji or images.", "defaults": [ "1" ] }, { "key": "palette", "zigType": "Palette", "kind": "palette", "repeatable": true, "doc": "Color palette for the 256 color form that many terminal applications use.\nThe syntax of this configuration is `N=COLOR` where `N` is 0 to 255 (for\nthe 256 colors in the terminal color table) and `COLOR` is a typical RGB\ncolor code such as `#AABBCC` or `AABBCC`, or a named X11 color. For example,\n`palette = 5=#BB78D9` will set the 'purple' color.\n\nThe palette index can be in decimal, binary, octal, or hexadecimal.\nDecimal is assumed unless a prefix is used: `0b` for binary, `0o` for octal,\nand `0x` for hexadecimal.\n\nFor definitions on the color indices and what they canonically map to,\n[see this cheat sheet](https://www.ditig.com/256-colors-cheat-sheet).\n\nFor most themes, you only need to set the first 16 colors (0–15) since the\nrest of the palette (16–255) will be automatically generated by\ndefault (see `palette-generate` for more details).", "defaults": [ "0=#1d1f21", "1=#cc6666", "2=#b5bd68", "3=#f0c674", "4=#81a2be", "5=#b294bb", "6=#8abeb7", "7=#c5c8c6", "8=#666666", "9=#d54e53", "10=#b9ca4a", "11=#e7c547", "12=#7aa6da", "13=#c397d8", "14=#70c0b1", "15=#eaeaea", "16=#000000", "17=#00005f", "18=#000087", "19=#0000af", "20=#0000d7", "21=#0000ff", "22=#005f00", "23=#005f5f", "24=#005f87", "25=#005faf", "26=#005fd7", "27=#005fff", "28=#008700", "29=#00875f", "30=#008787", "31=#0087af", "32=#0087d7", "33=#0087ff", "34=#00af00", "35=#00af5f", "36=#00af87", "37=#00afaf", "38=#00afd7", "39=#00afff", "40=#00d700", "41=#00d75f", "42=#00d787", "43=#00d7af", "44=#00d7d7", "45=#00d7ff", "46=#00ff00", "47=#00ff5f", "48=#00ff87", "49=#00ffaf", "50=#00ffd7", "51=#00ffff", "52=#5f0000", "53=#5f005f", "54=#5f0087", "55=#5f00af", "56=#5f00d7", "57=#5f00ff", "58=#5f5f00", "59=#5f5f5f", "60=#5f5f87", "61=#5f5faf", "62=#5f5fd7", "63=#5f5fff", "64=#5f8700", "65=#5f875f", "66=#5f8787", "67=#5f87af", "68=#5f87d7", "69=#5f87ff", "70=#5faf00", "71=#5faf5f", "72=#5faf87", "73=#5fafaf", "74=#5fafd7", "75=#5fafff", "76=#5fd700", "77=#5fd75f", "78=#5fd787", "79=#5fd7af", "80=#5fd7d7", "81=#5fd7ff", "82=#5fff00", "83=#5fff5f", "84=#5fff87", "85=#5fffaf", "86=#5fffd7", "87=#5fffff", "88=#870000", "89=#87005f", "90=#870087", "91=#8700af", "92=#8700d7", "93=#8700ff", "94=#875f00", "95=#875f5f", "96=#875f87", "97=#875faf", "98=#875fd7", "99=#875fff", "100=#878700", "101=#87875f", "102=#878787", "103=#8787af", "104=#8787d7", "105=#8787ff", "106=#87af00", "107=#87af5f", "108=#87af87", "109=#87afaf", "110=#87afd7", "111=#87afff", "112=#87d700", "113=#87d75f", "114=#87d787", "115=#87d7af", "116=#87d7d7", "117=#87d7ff", "118=#87ff00", "119=#87ff5f", "120=#87ff87", "121=#87ffaf", "122=#87ffd7", "123=#87ffff", "124=#af0000", "125=#af005f", "126=#af0087", "127=#af00af", "128=#af00d7", "129=#af00ff", "130=#af5f00", "131=#af5f5f", "132=#af5f87", "133=#af5faf", "134=#af5fd7", "135=#af5fff", "136=#af8700", "137=#af875f", "138=#af8787", "139=#af87af", "140=#af87d7", "141=#af87ff", "142=#afaf00", "143=#afaf5f", "144=#afaf87", "145=#afafaf", "146=#afafd7", "147=#afafff", "148=#afd700", "149=#afd75f", "150=#afd787", "151=#afd7af", "152=#afd7d7", "153=#afd7ff", "154=#afff00", "155=#afff5f", "156=#afff87", "157=#afffaf", "158=#afffd7", "159=#afffff", "160=#d70000", "161=#d7005f", "162=#d70087", "163=#d700af", "164=#d700d7", "165=#d700ff", "166=#d75f00", "167=#d75f5f", "168=#d75f87", "169=#d75faf", "170=#d75fd7", "171=#d75fff", "172=#d78700", "173=#d7875f", "174=#d78787", "175=#d787af", "176=#d787d7", "177=#d787ff", "178=#d7af00", "179=#d7af5f", "180=#d7af87", "181=#d7afaf", "182=#d7afd7", "183=#d7afff", "184=#d7d700", "185=#d7d75f", "186=#d7d787", "187=#d7d7af", "188=#d7d7d7", "189=#d7d7ff", "190=#d7ff00", "191=#d7ff5f", "192=#d7ff87", "193=#d7ffaf", "194=#d7ffd7", "195=#d7ffff", "196=#ff0000", "197=#ff005f", "198=#ff0087", "199=#ff00af", "200=#ff00d7", "201=#ff00ff", "202=#ff5f00", "203=#ff5f5f", "204=#ff5f87", "205=#ff5faf", "206=#ff5fd7", "207=#ff5fff", "208=#ff8700", "209=#ff875f", "210=#ff8787", "211=#ff87af", "212=#ff87d7", "213=#ff87ff", "214=#ffaf00", "215=#ffaf5f", "216=#ffaf87", "217=#ffafaf", "218=#ffafd7", "219=#ffafff", "220=#ffd700", "221=#ffd75f", "222=#ffd787", "223=#ffd7af", "224=#ffd7d7", "225=#ffd7ff", "226=#ffff00", "227=#ffff5f", "228=#ffff87", "229=#ffffaf", "230=#ffffd7", "231=#ffffff", "232=#080808", "233=#121212", "234=#1c1c1c", "235=#262626", "236=#303030", "237=#3a3a3a", "238=#444444", "239=#4e4e4e", "240=#585858", "241=#626262", "242=#6c6c6c", "243=#767676", "244=#808080", "245=#8a8a8a", "246=#949494", "247=#9e9e9e", "248=#a8a8a8", "249=#b2b2b2", "250=#bcbcbc", "251=#c6c6c6", "252=#d0d0d0", "253=#dadada", "254=#e4e4e4", "255=#eeeeee" ] }, { "key": "palette-generate", "zigType": "bool", "kind": "bool", "doc": "Whether to automatically generate the extended 256 color palette\n(indices 16–255) from the base 16 ANSI colors.\n\nThis lets theme authors specify only the base 16 colors and have the\nrest of the palette be automatically generated in a consistent and\naesthetic way.\n\nWhen enabled, the 6×6×6 color cube and 24-step grayscale ramp are\nderived from interpolations of the base palette, giving a more cohesive\nlook. Colors that have been explicitly set via `palette` are never\noverwritten.\n\nThe default value is false (disabled), because many legacy programs\nusing the 256-color palette hardcode assumptions about what these\ncolors are (mostly assuming the xterm 256 color palette). However, this\nis still a very useful tool for theme authors and users who want\nto customize their palette without having to specify all 256 colors.\n\nFor more information on how the generation works, see here:\nhttps://gist.github.com/jake-stewart/0a8ea46159a7da2c808e5be2177e1783\n\nAvailable since: 1.3.0", "defaults": [ "false" ] }, { "key": "palette-harmonious", "zigType": "bool", "kind": "bool", "doc": "Invert the palette colors generated when `palette-generate` is enabled,\nso that the colors go in reverse order. This allows palette-based\napplications to work well in both light and dark mode since the\npalettes are always relatively good colors.\n\nThis defaults to off because some legacy terminal applications\nhardcode the assumption that palette indices 16–231 are ordered from\ndarkest to lightest, so enabling this would make them unreadable.\nThis is not a generally good assumption and we encourage modern\nterminal applications to use the indices in a more semantic way.\n\nThis has no effect if `palette-generate` is disabled.\n\nFor more information see `palette-generate`.\n\nAvailable since: 1.3.0", "defaults": [ "false" ] }, { "key": "cursor-color", "zigType": "?TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The color of the cursor. If this is not set, a default will be chosen.\n\nDirect colors can be specified as either hex (`#RRGGBB` or `RRGGBB`)\nor a named X11 color.\n\nAdditionally, special values can be used to set the color to match\nother colors at runtime:\n\n * `cell-foreground` - Match the cell foreground color.\n (Available since: 1.2.0)\n\n * `cell-background` - Match the cell background color.\n (Available since: 1.2.0)", "defaults": [ "" ] }, { "key": "cursor-opacity", "zigType": "f64", "kind": "float", "min": 0, "max": 1, "doc": "The opacity level (opposite of transparency) of the cursor. A value of 1\nis fully opaque and a value of 0 is fully transparent. A value less than 0\nor greater than 1 will be clamped to the nearest valid value. Note that a\nsufficiently small value such as 0.3 may be effectively invisible and may\nmake it difficult to find the cursor.", "defaults": [ "1" ] }, { "key": "cursor-style", "zigType": "terminal.CursorStyle", "kind": "enum", "values": [ "block", "bar", "underline", "block_hollow" ], "doc": "The style of the cursor. This sets the default style. A running program can\nstill request an explicit cursor style using escape sequences (such as `CSI\nq`). Shell configurations will often request specific cursor styles.\n\nNote that shell integration will automatically set the cursor to a bar at\na prompt, regardless of this configuration. You can disable that behavior\nby specifying `shell-integration-features = no-cursor` or disabling shell\nintegration entirely.\n\nValid values are:\n\n * `block`\n * `bar`\n * `underline`\n * `block_hollow`", "defaults": [ "block" ] }, { "key": "cursor-style-blink", "zigType": "?bool", "kind": "bool", "doc": "Sets the default blinking state of the cursor. This is just the default\nstate; running programs may override the cursor style using `DECSCUSR` (`CSI\nq`).\n\nIf this is not set, the cursor blinks by default. Note that this is not the\nsame as a \"true\" value, as noted below.\n\nIf this is not set at all (`null`), then Ghostty will respect DEC Mode 12\n(AT\u0026T cursor blink) as an alternate approach to turning blinking on/off. If\nthis is set to any value other than null, DEC mode 12 will be ignored but\n`DECSCUSR` will still be respected.\n\nValid values are:\n\n * ` ` (blank)\n * `true`\n * `false`", "defaults": [ "" ] }, { "key": "cursor-text", "zigType": "?TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The color of the text under the cursor. If this is not set, a default will\nbe chosen.\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.\nSince version 1.2.0, this can also be set to `cell-foreground` to match\nthe cell foreground color, or `cell-background` to match the cell\nbackground color.", "defaults": [ "" ] }, { "key": "cursor-click-to-move", "zigType": "bool", "kind": "bool", "doc": "Enables the ability to move the cursor at prompts by clicking on a\nlocation in the prompt text.\n\nThis feature requires prompt marking via `OSC 133`. Some shells like Fish\n(v4.1+) and Nu (0.111+) natively support this while others may require\nadditional configuration or Ghostty's shell integration features to be\nenabled.\n\nDepending on the shell, this works either by translating your click\nposition into a series of synthetic arrow key movements or by sending\na click event directly to the shell. In either case, some unexpected\nbehavior around edge cases is possible.", "defaults": [ "true" ] }, { "key": "mouse-hide-while-typing", "zigType": "bool", "kind": "bool", "doc": "Hide the mouse immediately when typing. The mouse becomes visible again\nwhen the mouse is used (button, movement, etc.). Platform-specific behavior\nmay dictate other scenarios where the mouse is shown. For example on macOS,\nthe mouse is shown again when a new window, tab, or split is created.", "defaults": [ "false" ] }, { "key": "scroll-to-bottom", "zigType": "ScrollToBottom", "kind": "flags", "flags": [ "keystroke", "output" ], "doc": "When to scroll the surface to the bottom. The format of this is a list of\noptions to enable separated by commas. If you prefix an option with `no-`\nthen it is disabled. If you omit an option, its default value is used.\n\nAvailable options:\n\n- `keystroke` If set, scroll the surface to the bottom when the user\n presses a key that results in data being sent to the PTY (basically\n anything but modifiers or keybinds that are processed by Ghostty).\n\n- `output` If set, scroll the surface to the bottom if there is new data\n to display (e.g., when new lines are printed to the terminal).\n\nThe default is `keystroke, no-output`.", "defaults": [ "keystroke,no-output" ] }, { "key": "mouse-shift-capture", "zigType": "MouseShiftCapture", "kind": "enum", "values": [ "false", "true", "always", "never" ], "doc": "Determines whether running programs can detect the shift key pressed with a\nmouse click. Typically, the shift key is used to extend mouse selection.\n\nThe default value of `false` means that the shift key is not sent with\nthe mouse protocol and will extend the selection. This value can be\nconditionally overridden by the running program with the `XTSHIFTESCAPE`\nsequence.\n\nThe value `true` means that the shift key is sent with the mouse protocol\nbut the running program can override this behavior with `XTSHIFTESCAPE`.\n\nThe value `never` is the same as `false` but the running program cannot\noverride this behavior with `XTSHIFTESCAPE`. The value `always` is the\nsame as `true` but the running program cannot override this behavior with\n`XTSHIFTESCAPE`.\n\nIf you always want shift to extend mouse selection even if the program\nrequests otherwise, set this to `never`.\n\nValid values are:\n\n * `true`\n * `false`\n * `always`\n * `never`", "defaults": [ "false" ] }, { "key": "mouse-reporting", "zigType": "bool", "kind": "bool", "doc": "Enable or disable mouse reporting. When set to `false`, mouse events will\nnot be reported to terminal applications even if they request it. This\nallows you to always use the mouse for selection and other terminal UI\ninteractions without applications capturing mouse input.\n\nWhen set to `true` (the default), terminal applications can request mouse\nreporting and will receive mouse events according to their requested mode.\n\nThis can be toggled at runtime using the `toggle_mouse_reporting` keybind\naction.", "defaults": [ "true" ] }, { "key": "mouse-scroll-multiplier", "zigType": "MouseScrollMultiplier", "kind": "text", "hint": "a number, or precision:N,discrete:N", "doc": "Multiplier for scrolling distance with the mouse wheel.\n\nA prefix of `precision:` or `discrete:` can be used to set the multiplier\nonly for scrolling with the specific type of devices. These can be\ncomma-separated to set both types of multipliers at the same time, e.g.\n`precision:0.1,discrete:3`. If no prefix is used, the multiplier applies\nto all scrolling devices. Specifying a prefix was introduced in Ghostty\n1.2.1.\n\nThe value will be clamped to [0.01, 10,000]. Both of these are extreme\nand you're likely to have a bad experience if you set either extreme.\n\nThe default value is \"3\" for discrete devices and \"1\" for precision devices.", "defaults": [ "precision:1,discrete:3" ] }, { "key": "background-opacity", "zigType": "f64", "kind": "float", "min": 0, "max": 1, "doc": "The opacity level (opposite of transparency) of the background. A value of\n1 is fully opaque and a value of 0 is fully transparent. A value less than 0\nor greater than 1 will be clamped to the nearest valid value.\n\nOn macOS, background opacity is disabled when the terminal enters native\nfullscreen. This is because the background becomes gray and it can cause\nwidgets to show through which isn't generally desirable.\n\nOn macOS, changing this configuration requires restarting Ghostty completely.", "defaults": [ "1" ] }, { "key": "background-opacity-cells", "zigType": "bool", "kind": "bool", "doc": "Applies background opacity to cells with an explicit background color\nset.\n\nNormally, `background-opacity` is only applied to the window background.\nIf a cell has an explicit background color set, such as red, then that\nbackground color will be fully opaque. An effect of this is that some\nterminal applications that repaint the background color of the terminal\nsuch as a Neovim and Tmux may not respect the `background-opacity`\n(by design).\n\nSetting this to `true` will apply the `background-opacity` to all cells\nregardless of whether they have an explicit background color set or not.\n\nAvailable since: 1.2.0", "defaults": [ "false" ] }, { "key": "background-blur", "zigType": "BackgroundBlur", "kind": "choice", "values": [ "false", "true", "macos-glass-regular", "macos-glass-clear" ], "hint": "true, false, a blur radius (e.g. 20) or a macOS glass style", "doc": "Whether to blur the background when `background-opacity` is less than 1.\n\nValid values are:\n\n * a nonnegative integer specifying the *blur intensity*\n * `false`, equivalent to a blur intensity of 0\n * `true`, equivalent to the default blur intensity of 20, which is\n reasonable for a good looking blur. Higher blur intensities may\n cause strange rendering and performance issues.\n\nOn macOS 26.0 and later, there are additional special values that\ncan be set to use the native macOS glass effects:\n\n * `macos-glass-regular` - Standard glass effect with some opacity\n * `macos-glass-clear` - Highly transparent glass effect\n\nIf the macOS values are set, then this implies `background-blur = true`\non non-macOS platforms.\n\nOn Linux, the exact blur intensity is ignored and any positive integer\nor `true` value will enable background blur. On Wayland, Ghostty uses\nthe [`ext-background-effect-v1`](https://wayland.app/protocols/ext-background-effect-v1)\nprotocol to enable the blur effect, but this is not always supported\non all compositors. Check the documentation of your compositor or\ndesktop environment for blur support and how to configure it.\n\nOn X11, blur can only be enabled when using the KWin compositor\nas a part of KDE Plasma.", "defaults": [ "false" ] }, { "key": "unfocused-split-opacity", "zigType": "f64", "kind": "float", "min": 0.15, "max": 1, "doc": "The opacity level (opposite of transparency) of an unfocused split.\nUnfocused splits by default are slightly faded out to make it easier to see\nwhich split is focused. To disable this feature, set this value to 1.\n\nA value of 1 is fully opaque and a value of 0 is fully transparent. Because\n\"0\" is not useful (it makes the window look very weird), the minimum value\nis 0.15. This value still looks weird but you can at least see what's going\non. A value outside of the range 0.15 to 1 will be clamped to the nearest\nvalid value.", "defaults": [ "0.7" ] }, { "key": "unfocused-split-fill", "zigType": "?Color", "kind": "color", "doc": "The color to dim the unfocused split. Unfocused splits are dimmed by\nrendering a semi-transparent rectangle over the split. This sets the color of\nthat rectangle and can be used to carefully control the dimming effect.\n\nThis will default to the background color.\n\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.", "defaults": [ "" ] }, { "key": "split-divider-color", "zigType": "?Color", "kind": "color", "doc": "The color of the split divider. If this is not set, a default will be chosen.\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.\n\nAvailable since: 1.1.0", "defaults": [ "" ] }, { "key": "split-preserve-zoom", "zigType": "SplitPreserveZoom", "kind": "flags", "flags": [ "navigation" ], "doc": "Control when Ghostty preserves a zoomed split. Under normal circumstances,\nany operation that changes focus or layout of the split tree in a window\nwill unzoom any zoomed split. This configuration allows you to control\nthis behavior.\n\nThis can be set to `navigation` to preserve the zoomed split state\nwhen navigating to another split (e.g. via `goto_split`). This will\nchange the zoomed split to the newly focused split instead of unzooming.\n\nAny options can also be prefixed with `no-` to disable that option.\n\nExample: `split-preserve-zoom = navigation`\n\nAvailable since: 1.3.0", "defaults": [ "no-navigation" ] }, { "key": "search-foreground", "zigType": "TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The foreground and background color for search matches. This only applies\nto non-focused search matches, also known as candidate matches.\n\nValid values:\n\n - Hex (`#RRGGBB` or `RRGGBB`)\n - Named X11 color\n - \"cell-foreground\" to match the cell foreground color\n - \"cell-background\" to match the cell background color\n\nThe default value is black text on a golden yellow background.", "defaults": [ "#000000" ] }, { "key": "search-background", "zigType": "TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The foreground and background color for search matches. This only applies\nto non-focused search matches, also known as candidate matches.\n\nValid values:\n\n - Hex (`#RRGGBB` or `RRGGBB`)\n - Named X11 color\n - \"cell-foreground\" to match the cell foreground color\n - \"cell-background\" to match the cell background color\n\nThe default value is black text on a golden yellow background.", "defaults": [ "#ffe082" ] }, { "key": "search-selected-foreground", "zigType": "TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The foreground and background color for the currently selected search match.\nThis is the focused match that will be jumped to when using next/previous\nsearch navigation.\n\nValid values:\n\n - Hex (`#RRGGBB` or `RRGGBB`)\n - Named X11 color\n - \"cell-foreground\" to match the cell foreground color\n - \"cell-background\" to match the cell background color\n\nThe default value is black text on a soft peach background.", "defaults": [ "#000000" ] }, { "key": "search-selected-background", "zigType": "TerminalColor", "kind": "color", "values": [ "cell-foreground", "cell-background" ], "doc": "The foreground and background color for the currently selected search match.\nThis is the focused match that will be jumped to when using next/previous\nsearch navigation.\n\nValid values:\n\n - Hex (`#RRGGBB` or `RRGGBB`)\n - Named X11 color\n - \"cell-foreground\" to match the cell foreground color\n - \"cell-background\" to match the cell background color\n\nThe default value is black text on a soft peach background.", "defaults": [ "#f2a57e" ] }, { "key": "command", "zigType": "?Command", "kind": "text", "hint": "command line; prefix with direct: or shell: to control how it runs", "doc": "The command to run, usually a shell. If this is not an absolute path, it'll\nbe looked up in the `PATH`. If this is not set, a default will be looked up\nfrom your system. The rules for the default lookup are:\n\n * `SHELL` environment variable\n\n * `passwd` entry (user information)\n\nThis can contain additional arguments to run the command with. If additional\narguments are provided, the command will be executed using `/bin/sh -c`\nto offload shell argument expansion.\n\nTo avoid shell expansion altogether, prefix the command with `direct:`, e.g.\n`direct:nvim foo`. This will avoid the roundtrip to `/bin/sh` but will also\nnot support any shell parsing such as arguments with spaces, filepaths with\n`~`, globs, etc. (Available since: 1.2.0)\n\nYou can also explicitly prefix the command with `shell:` to always wrap the\ncommand in a shell. This can be used to ensure our heuristics to choose the\nright mode are not used in case they are wrong. (Available since: 1.2.0)\n\nThis command will be used for all new terminal surfaces, i.e. new windows,\ntabs, etc. If you want to run a command only for the first terminal surface\ncreated when Ghostty starts, use the `initial-command` configuration.\n\nGhostty supports the common `-e` flag for executing a command with\narguments. For example, `ghostty -e fish --with --custom --args`.\nThis flag sets the `initial-command` configuration, see that for more\ninformation.", "defaults": [ "" ] }, { "key": "initial-command", "zigType": "?Command", "kind": "text", "hint": "command line; prefix with direct: or shell: to control how it runs", "doc": "This is the same as \"command\", but only applies to the first terminal\nsurface created when Ghostty starts. Subsequent terminal surfaces will use\nthe `command` configuration.\n\nAfter the first terminal surface is created (or closed), there is no\nway to run this initial command again automatically. As such, setting\nthis at runtime works but will only affect the next terminal surface\nif it is the first one ever created.\n\nIf you're using the `ghostty` CLI there is also a shortcut to set this\nwith arguments directly: you can use the `-e` flag. For example: `ghostty -e\nfish --with --custom --args`. The `-e` flag automatically forces some\nother behaviors as well:\n\n * Disables shell expansion since the input is expected to already\n be shell-expanded by the upstream (e.g. the shell used to type in\n the `ghostty -e` command).\n\n * `gtk-single-instance=false` - This ensures that a new instance is\n launched and the CLI args are respected.\n\n * `quit-after-last-window-closed=true` - This ensures that the Ghostty\n process will exit when the command exits. Additionally, the\n `quit-after-last-window-closed-delay` is unset.\n\n * `shell-integration=detect` (if not `none`) - This prevents forcibly\n injecting any configured shell integration into the command's\n environment. With `-e` its highly unlikely that you're executing a\n shell and forced shell integration is likely to cause problems\n (e.g. by wrapping your command in a shell, setting env vars, etc.).\n This is a safety measure to prevent unexpected behavior. If you want\n shell integration with a `-e`-executed command, you must either\n name your binary appropriately or source the shell integration script\n manually.", "defaults": [ "" ] }, { "key": "notify-on-command-finish", "zigType": "NotifyOnCommandFinish", "kind": "enum", "values": [ "never", "unfocused", "always" ], "doc": "Controls when command finished notifications are sent. There are\nthree options:\n\n* `never` - Never send notifications (the default).\n* `unfocused` - Only send notifications if the surface that the command is\n running in is not focused.\n* `always` - Always send notifications.\n\nCommand finished notifications requires that either shell integration is\nenabled, or that your shell sends OSC 133 escape sequences to mark the start\nand end of commands.\n\nOn GTK, there is a context menu item that will enable command finished\nnotifications for a single command, overriding the `never` and `unfocused`\noptions.\n\nAvailable since 1.3.0.", "defaults": [ "never" ] }, { "key": "notify-on-command-finish-action", "zigType": "NotifyOnCommandFinishAction", "kind": "flags", "flags": [ "bell", "notify" ], "doc": "If command finished notifications are enabled, this controls how the user is\nnotified.\n\nAvailable options:\n\n* `bell` - enabled by default\n* `notify` - disabled by default\n\nOptions can be combined by listing them as a comma separated list. Options\ncan be negated by prefixing them with `no-`. For example `no-bell,notify`.\n\nAvailable since 1.3.0.", "defaults": [ "bell,no-notify" ] }, { "key": "notify-on-command-finish-after", "zigType": "Duration", "kind": "duration", "doc": "If command finished notifications are enabled, this controls how long a\ncommand must have been running before a notification will be sent. The\ndefault is five seconds.\n\nThe duration is specified as a series of numbers followed by time units.\nWhitespace is allowed between numbers and units. Each number and unit will\nbe added together to form the total duration.\n\nThe allowed time units are as follows:\n\n * `y` - 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments\n are made for leap years or leap seconds.\n * `d` - one SI day, or 86400 seconds.\n * `h` - one hour, or 3600 seconds.\n * `m` - one minute, or 60 seconds.\n * `s` - one second.\n * `ms` - one millisecond, or 0.001 second.\n * `us` or `µs` - one microsecond, or 0.000001 second.\n * `ns` - one nanosecond, or 0.000000001 second.\n\nExamples:\n * `1h30m`\n * `45s`\n\nUnits can be repeated and will be added together. This means that\n`1h1h` is equivalent to `2h`. This is confusing and should be avoided.\nA future update may disallow this.\n\nThe maximum value is `584y 49w 23h 34m 33s 709ms 551µs 615ns`. Any\nvalue larger than this will be clamped to the maximum value.\n\nAvailable since 1.3.0", "defaults": [ "5s" ] }, { "key": "env", "zigType": "RepeatableStringMap", "kind": "text", "repeatable": true, "hint": "NAME=value", "doc": "Extra environment variables to pass to commands launched in a terminal\nsurface. The format is `env=KEY=VALUE`.\n\n`env = foo=bar`\n`env = bar=baz`\n\nSetting `env` to an empty string will reset the entire map to default\n(empty).\n\n`env =`\n\nSetting a key to an empty string will remove that particular key and\ncorresponding value from the map.\n\n`env = foo=bar`\n`env = foo=`\n\nwill result in `foo` not being passed to the launched commands.\n\nSetting a key multiple times will overwrite previous entries.\n\n`env = foo=bar`\n`env = foo=baz`\n\nwill result in `foo=baz` being passed to the launched commands.\n\nThese environment variables will override any existing environment\nvariables set by Ghostty. For example, if you set `GHOSTTY_RESOURCES_DIR`\nthen the value you set here will override the value Ghostty typically\nautomatically injects.\n\nThese environment variables _will not_ be passed to commands run by Ghostty\nfor other purposes, like `open` or `xdg-open` used to open URLs in your\nbrowser.\n\nAvailable since: 1.2.0", "defaults": [ "" ] }, { "key": "input", "zigType": "RepeatableReadableIO", "kind": "text", "repeatable": true, "hint": "raw:TEXT or path:FILE", "doc": "Data to send as input to the command on startup.\n\nThe configured `command` will be launched using the typical rules,\nthen the data specified as this input will be written to the pty\nbefore any other input can be provided.\n\nThe bytes are sent as-is with no additional encoding. Therefore, be\ncautious about input that can contain control characters, because this\ncan be used to execute programs in a shell.\n\nThe format of this value is:\n\n * `raw:\u003cstring\u003e` - Send raw text as-is. This uses Zig string literal\n syntax so you can specify control characters and other standard\n escapes.\n\n * `path:\u003cpath\u003e` - Read a filepath and send the contents. The path\n must be to a file with finite length. e.g. don't use a device\n such as `/dev/stdin` or `/dev/urandom` as these will block\n terminal startup indefinitely. Files are limited to 10MB\n in size to prevent excessive memory usage. If you have files\n larger than this you should write a script to read the file\n and send it to the terminal.\n\nIf no valid prefix is found, it is assumed to be a `raw:` input.\nThis is an ergonomic choice to allow you to simply write\n`input = \"Hello, world!\"` (a common case) without needing to prefix\nevery value with `raw:`.\n\nThis can be repeated multiple times to send more data. The data\nis concatenated directly with no separator characters in between\n(e.g. no newline).\n\nIf any of the input sources do not exist, then none of the input\nwill be sent. Input sources are not verified until the terminal\nis starting, so missing paths will not show up in config validation.\n\nChanging this configuration at runtime will only affect new\nterminals.\n\nAvailable since: 1.2.0", "defaults": [ "" ] }, { "key": "wait-after-command", "zigType": "bool", "kind": "bool", "doc": "If true, keep the terminal open after the command exits. Normally, the\nterminal window closes when the running command (such as a shell) exits.\nWith this true, the terminal window will stay open until any keypress is\nreceived.\n\nThis is primarily useful for scripts or debugging.", "defaults": [ "false" ] }, { "key": "abnormal-command-exit-runtime", "zigType": "u32", "kind": "int", "min": 0, "max": 4294967295, "doc": "The number of milliseconds of runtime below which we consider a process exit\nto be abnormal. This is used to show an error message when the process exits\ntoo quickly.\n\nOn Linux, this must be paired with a non-zero exit code. On macOS, we allow\nany exit code because of the way shell processes are launched via the login\ncommand.", "defaults": [ "250" ] }, { "key": "scrollback-limit-bytes", "zigType": "Limit(usize, 50_000_000)", "kind": "int", "values": [ "unlimited" ], "min": 0, "doc": "The size of the scrollback buffer in bytes. This also includes the active\nscreen. No matter what this is set to, enough memory will always be\nallocated for the visible screen and anything leftover is the limit for\nthe scrollback.\n\nWhen this limit is reached, the oldest lines are removed from the\nscrollback.\n\nScrollback is stored in memory and allocated lazily up to this limit, so\nsetting a very large limit does not immediately consume that amount of\nmemory. On supported systems with scrollback compression enabled, Ghostty\nattempts to compress fully historical pages which are not currently visible\nwhile the terminal is idle. This can reduce physical memory usage, depending\non the contents of the scrollback.\n\nThis limit always measures the uncompressed logical size of the terminal\npages. Compression does not allow Ghostty to retain more history than the\nconfigured limit. Accessing compressed history restores it transparently\nand may increase the terminal's physical memory usage again.\n\nThis size is per terminal surface, not for the entire application.\n\nA separate maximum can be set with `scrollback-limit-lines`; if both limits\nare set, then the first one reached will determine when scrollback is\nremoved.\n\nThe default is 50 MB. Set this to `unlimited` to remove the byte limit.\n\nThis can be changed at runtime but will only affect new terminal surfaces.", "defaults": [ "50000000" ] }, { "key": "scrollback-limit-lines", "zigType": "Limit(usize, std.math.maxInt(usize))", "kind": "int", "values": [ "unlimited" ], "min": 0, "doc": "The maximum number of lines of scrollback to retain. This excludes\nthe active screen. Soft-wrapped lines count as multiple lines.\n\nThis limit is an estimate. Internally, Ghostty will only trim lines\nup to the minimum allocation unit that is used internally (called a\n\"page\"). The size of a page depends on how many styles, graphemes, etc.\ntake up the screen. In practice, this can be anywhere from a handful to\na couple hundred lines. Importantly, memory is capped either way.\nThis means that the actual limited lines will likely be slightly\nhigher in practice.\n\nThe default is `unlimited`. A separate maximum can be set with\n`scrollback-limit-bytes`; if both limits are set, then the first one reached\nwill determine when scrollback is removed.\n\nThis can be changed at runtime but will only affect new terminal surfaces.", "defaults": [ "unlimited" ] }, { "key": "scrollback-compression", "zigType": "bool", "kind": "bool", "doc": "Whether to compress scrollback pages while the terminal is idle.\n\nGhostty does its best to only compress when idle and decompress\nas needed. This means that compression doesn't lower IO throughput.\nWe recommend you keep it on.\n\nThe scrollback limit remains an uncompressed logical limit regardless of\nthis setting, so disabling compression can increase physical memory usage\nbut does not change how much history is retained.\n\nText-heavy terminal history generally compresses to approximately 10% to\n30% of its uncompressed page memory, corresponding to a 70% to 90% reduction\nin physical memory for pages which are compressed. Compression savings are\ncontent-dependent.\n\nNote that the way Ghostty works is that we compress and discard the\nphysical/resident memory but we retain virtual mappings. You will not\nsee a decrease in virtual memory usage, but you will see a decrease\nin physical/memory usage.\n\nChanging this at runtime affects future compression work. Pages which are\nalready compressed remain compressed until their contents are accessed.", "defaults": [ "true" ] }, { "key": "scrollbar", "zigType": "Scrollbar", "kind": "enum", "values": [ "system", "never" ], "doc": "Control when the scrollbar is shown to scroll the scrollback buffer.\n\nThe default value is `system`.\n\nValid values:\n\n * `system` - Respect the system settings for when to show scrollbars.\n On macOS, we only show scrollbars while actively scrolling or hovering\n the gutter. If the system setting is set to \"Always\", the scrollbar\n will be shown when the mouse is over the gutter area.\n\n * `never` - Never show a scrollbar. You can still scroll using the mouse,\n keybind actions, etc. but you will not have a visual UI widget showing\n a scrollbar.", "defaults": [ "system" ] }, { "key": "link-url", "zigType": "bool", "kind": "bool", "doc": "Match a regular expression against the terminal text and associate clicking\nit with an action. This can be used to match URLs, file paths, etc. Actions\ncan be opening using the system opener (e.g. `open` or `xdg-open`) or\nexecuting any arbitrary binding action.\n\nLinks that are configured earlier take precedence over links that are\nconfigured later.\n\nA default link that matches a URL and opens it in the system opener always\nexists. This can be disabled using `link-url`.\n\nTODO: This can't currently be set!\nEnable URL matching. URLs are matched on hover with control (Linux) or\ncommand (macOS) pressed and open using the default system application for\nthe linked URL.\n\nThe URL matcher is always lowest priority of any configured links (see\n`link`). If you want to customize URL matching, use `link` and disable this.", "defaults": [ "true" ] }, { "key": "link-osc8", "zigType": "bool", "kind": "bool", "doc": "Enable hyperlinks created with the OSC 8 escape sequence. When disabled,\nOSC 8 hyperlinks are not highlighted, previewed, copied, or opened.\n\nThis does not affect URL matching controlled by `link-url`.\n\nAvailable since: 1.4.0", "defaults": [ "true" ] }, { "key": "link-previews", "zigType": "LinkPreviews", "kind": "enum", "values": [ "false", "true", "osc8" ], "doc": "Show link previews for a matched URL.\n\nWhen true, link previews are shown for all matched URLs. When false, link\npreviews are never shown. When set to \"osc8\", link previews are only shown\nfor hyperlinks created with the OSC 8 sequence (in this case, the link text\ncan differ from the link destination).\n\nAvailable since: 1.2.0", "defaults": [ "true" ] }, { "key": "maximize", "zigType": "bool", "kind": "bool", "doc": "Whether to start the window in a maximized state. This setting applies\nto new windows and does not apply to tabs, splits, etc. However, this setting\nwill apply to all new windows, not just the first one.\n\nAvailable since: 1.1.0", "defaults": [ "false" ] }, { "key": "fullscreen", "zigType": "Fullscreen", "kind": "enum", "values": [ "false", "true", "non-native", "non-native-visible-menu", "non-native-padded-notch" ], "doc": "Start new windows in fullscreen. This setting applies to new windows and\ndoes not apply to tabs, splits, etc. However, this setting will apply to all\nnew windows, not just the first one.\n\nAllowable values are:\n\n * `false` - Don't start in fullscreen (default)\n * `true` - Start in native fullscreen\n * `non-native` - (macOS only) Start in non-native fullscreen, hiding the\n menu bar. This is faster than native fullscreen since it doesn't use\n animations. On non-macOS platforms, this behaves the same as `true`.\n * `non-native-visible-menu` - (macOS only) Start in non-native fullscreen,\n keeping the menu bar visible. On non-macOS platforms, behaves like `true`.\n * `non-native-padded-notch` - (macOS only) Start in non-native fullscreen,\n hiding the menu bar but padding for the notch on applicable devices.\n On non-macOS platforms, behaves like `true`.\n\nImportant: tabs DO NOT WORK with non-native fullscreen modes. Non-native\nfullscreen removes the titlebar and macOS native tabs require the titlebar.\nIf you use tabs, use `true` (native) instead.\n\nOn macOS, `true` (native fullscreen) does not work if `window-decoration`\nis set to `false`, because native fullscreen on macOS requires window\ndecorations.", "defaults": [ "false" ] }, { "key": "title", "zigType": "?[:0]const u8", "kind": "text", "doc": "The title Ghostty will use for the window. This will force the title of the\nwindow to be this title at all times and Ghostty will ignore any set title\nescape sequences programs (such as Neovim) may send.\n\nIf you want a blank title, set this to one or more spaces by quoting\nthe value. For example, `title = \" \"`. This effectively hides the title.\nThis is necessary because setting a blank value resets the title to the\ndefault value of the running program.\n\nThis configuration can be reloaded at runtime. If it is set, the title\nwill update for all windows. If it is unset, the next title change escape\nsequence will be honored but previous changes will not retroactively\nbe set. This latter case may require you to restart programs such as Neovim\nto get the new title.", "defaults": [ "" ] }, { "key": "class", "zigType": "?[:0]const u8", "kind": "text", "doc": "The setting that will change the application class value.\n\nThis controls the class field of the `WM_CLASS` X11 property (when running\nunder X11), the Wayland application ID (when running under Wayland), and the\nbus name that Ghostty uses to connect to DBus.\n\nNote that changing this value between invocations will create new, separate\ninstances, of Ghostty when running with `gtk-single-instance=true`. See that\noption for more details.\n\nChanging this value may break launching Ghostty from `.desktop` files, via\nDBus activation, or systemd user services as the system is expecting Ghostty\nto connect to DBus using the default `class` when it is launched.\n\nThe class name must follow the requirements defined [in the GTK\ndocumentation](https://docs.gtk.org/gio/type_func.Application.id_is_valid.html).\n\nThe default is `com.mitchellh.ghostty`.\n\nThis only affects GTK builds.", "defaults": [ "" ] }, { "key": "x11-instance-name", "zigType": "?[:0]const u8", "kind": "text", "doc": "This controls the instance name field of the `WM_CLASS` X11 property when\nrunning under X11. It has no effect otherwise.\n\nThe default is `ghostty`.\n\nThis only affects GTK builds.", "defaults": [ "" ] }, { "key": "working-directory", "zigType": "?WorkingDirectory", "kind": "choice", "values": [ "home", "inherit" ], "hint": "home, inherit, or a directory path", "doc": "The directory to change to after starting the command.\n\nThis setting is secondary to the `window-inherit-working-directory`\nsetting. If a previous Ghostty terminal exists in the same process,\n`window-inherit-working-directory` will take precedence. Otherwise, this\nsetting will be used. Typically, this setting is used only for the first\nwindow.\n\nThe default is `inherit` except in special scenarios listed next. On macOS,\nif Ghostty can detect it is launched from launchd (double-clicked) or\n`open`, then it defaults to `home`. On Linux with GTK, if Ghostty can detect\nit was launched from a desktop launcher, then it defaults to `home`.\n\nThe value of this must be an absolute path, a path prefixed with `~/`\n(the tilde will be expanded to the user's home directory), or\none of the special values below:\n\n * `home` - The home directory of the executing user.\n\n * `inherit` - The working directory of the launching process.", "defaults": [ "" ] }, { "key": "keybind", "zigType": "Keybinds", "kind": "keybind", "repeatable": true, "doc": "Key bindings. The format is `trigger=action`. Duplicate triggers will\noverwrite previously set values. The list of actions is available in\nthe documentation or using the `ghostty +list-actions` command.\n\nTrigger: `+`-separated list of keys and modifiers. Example: `ctrl+a`,\n`ctrl+shift+b`, `up`.\n\nIf the key is a single Unicode codepoint, the trigger will match\nany presses that produce that codepoint. These are impacted by\nkeyboard layouts. For example, `a` will match the `a` key on a\nQWERTY keyboard, but will match the `q` key on a AZERTY keyboard\n(assuming US physical layout).\n\nFor Unicode codepoints, matching is done by comparing the set of\nmodifiers with the unmodified codepoint. The unmodified codepoint is\nsometimes called an \"unshifted character\" in other software, but all\nmodifiers are considered, not only shift. For example, `ctrl+a` will match\n`a` but not `ctrl+shift+a` (which is `A` on a US keyboard).\n\nFurther, codepoint matching is case-insensitive and the unmodified\ncodepoint is always case folded for comparison. As a result,\n`ctrl+A` configured will match when `ctrl+a` is pressed. Note that\nthis means some key combinations are impossible depending on keyboard\nlayout. For example, `ctrl+_` is impossible on a US keyboard because\n`_` is `shift+-` and `ctrl+shift+-` is not equal to `ctrl+_` (because\nthe modifiers don't match!). More details on impossible key combinations\ncan be found at this excellent source written by Qt developers:\nhttps://doc.qt.io/qt-6/qkeysequence.html#keyboard-layout-issues\n\nPhysical key codes can be specified by using any of the key codes\nas specified by the [W3C specification](https://www.w3.org/TR/uievents-code/).\nFor example, `KeyA` will match the physical `a` key on a US standard\nkeyboard regardless of the keyboard layout. These are case-sensitive.\n\nFor aesthetic reasons, the w3c codes also support snake case. For\nexample, `key_a` is equivalent to `KeyA`. The only exceptions are\nfunction keys, e.g. `F1` is `f1` (no underscore). This is a consequence\nof our internal code using snake case but is purposely supported\nand tested so it is safe to use. It allows an all-lowercase binding\nwhich I find more aesthetically pleasing.\n\nFunction keys such as `insert`, `up`, `f5`, etc. are also specified\nusing the keys as specified by the previously linked W3C specification.\n\nPhysical keys always match with a higher priority than Unicode codepoints,\nso if you specify both `a` and `KeyA`, the physical key will always be used\nregardless of what order they are configured.\n\nThe special key `catch_all` can be used to match any key that is not\notherwise bound. This can be combined with modifiers, for example\n`ctrl+catch_all` will match any key pressed with `ctrl` that is not\notherwise bound. When looking up a binding, Ghostty first tries to match\n`catch_all` with modifiers. If no match is found and the event has\nmodifiers, it falls back to `catch_all` without modifiers.\n\nValid modifiers are `shift`, `ctrl` (alias: `control`), `alt` (alias: `opt`,\n`option`), and `super` (alias: `cmd`, `command`). You may use the modifier\nor the alias. When debugging keybinds, the non-aliased modifier will always\nbe used in output.\n\nNote: The fn or \"globe\" key on keyboards are not supported as a\nmodifier. This is a limitation of the operating systems and GUI toolkits\nthat Ghostty uses.\n\nSome additional notes for triggers:\n\n * modifiers cannot repeat, `ctrl+ctrl+a` is invalid.\n\n * modifiers and keys can be in any order, `shift+a+ctrl` is *weird*,\n but valid.\n\n * only a single key input is allowed, `ctrl+a+b` is invalid.\n\nYou may also specify multiple triggers separated by `\u003e` to require a\nsequence of triggers to activate the action. For example,\n`ctrl+a\u003en=new_window` will only trigger the `new_window` action if the\nuser presses `ctrl+a` followed separately by `n`. In other software, this\nis sometimes called a leader key, a key chord, a key table, etc. There\nis no hardcoded limit on the number of parts in a sequence.\n\nWarning: If you define a sequence as a CLI argument to `ghostty`,\nyou probably have to quote the keybind since `\u003e` is a special character\nin most shells. Example: ghostty --keybind='ctrl+a\u003en=new_window'\n\nA trigger sequence has some special handling:\n\n * Ghostty will wait an indefinite amount of time for the next key in\n the sequence. There is no way to specify a timeout. The only way to\n force the output of a prefix key is to assign another keybind to\n specifically output that key (e.g. `ctrl+a\u003ectrl+a=text:foo`) or\n press an unbound key which will send both keys to the program.\n\n * If an unbound key is pressed during a sequence and a `catch_all`\n binding exists that would `ignore` the input, the entire sequence\n is dropped and nothing happens. Otherwise, the entire sequence is\n encoded and sent to the running program as if no keybind existed.\n\n * If a prefix in a sequence is previously bound, the sequence will\n override the previous binding. For example, if `ctrl+a` is bound to\n `new_window` and `ctrl+a\u003en` is bound to `new_tab`, pressing `ctrl+a`\n will do nothing.\n\n * Adding to the above, if a previously bound sequence prefix is\n used in a new, non-sequence binding, the entire previously bound\n sequence will be unbound. For example, if you bind `ctrl+a\u003en` and\n `ctrl+a\u003et`, and then bind `ctrl+a` directly, both `ctrl+a\u003en` and\n `ctrl+a\u003et` will become unbound.\n\n * Trigger sequences are not allowed for `global:` or `all:`-prefixed\n triggers. This is a limitation we could remove in the future.\n\nAction is the action to take when the trigger is satisfied. It takes the\nformat `action` or `action:param`. The latter form is only valid if the\naction requires a parameter.\n\n * `ignore` - Do nothing, ignore the key input. This can be used to\n black hole certain inputs to have no effect.\n\n * `unbind` - Remove the binding. This makes it so the previous action\n is removed, and the key will be sent through to the child command\n if it is printable. Unbind will remove any matching trigger,\n including `physical:`-prefixed triggers without specifying the\n prefix.\n\n * `csi:text` - Send a CSI sequence. e.g. `csi:A` sends \"cursor up\".\n\n * `esc:text` - Send an escape sequence. e.g. `esc:d` deletes to the\n end of the word to the right.\n\n * `text:text` - Send a string. Uses Zig string literal syntax.\n e.g. `text:\\x15` sends Ctrl-U.\n\n * All other actions can be found in the documentation or by using the\n `ghostty +list-actions` command.\n\nSome notes for the action:\n\n * The parameter is taken as-is after the `:`. Double quotes or\n other mechanisms are included and NOT parsed. If you want to\n send a string value that includes spaces, wrap the entire\n trigger/action in double quotes. Example: `--keybind=\"up=csi:A B\"`\n\nThere are some additional special values that can be specified for\nkeybind:\n\n * `keybind=clear` will clear all set keybindings. Warning: this\n removes ALL keybindings up to this point, including the default\n keybindings.\n\nThe keybind trigger can be prefixed with some special values to change\nthe behavior of the keybind. These are:\n\n * `all:`\n\n Make the keybind apply to all terminal surfaces. By default,\n keybinds only apply to the focused terminal surface. If this is true,\n then the keybind will be sent to all terminal surfaces. This only\n applies to actions that are surface-specific. For actions that\n are already global (e.g. `quit`), this prefix has no effect.\n\n Available since: 1.0.0\n\n * `global:`\n\n Make the keybind global. By default, keybinds only work within Ghostty\n and under the right conditions (application focused, sometimes terminal\n focused, etc.). If you want a keybind to work globally across your system\n (e.g. even when Ghostty is not focused), specify this prefix.\n This prefix implies `all:`.\n\n Note: this does not work in all environments; see the additional notes\n below for more information.\n\n Available since: 1.0.0 on macOS, 1.2.0 on GTK\n\n * `unconsumed:`\n\n Do not consume the input. By default, a keybind will consume the input,\n meaning that the associated encoding (if any) will not be sent to the\n running program in the terminal. If you wish to send the encoded value\n to the program, specify the `unconsumed:` prefix before the entire\n keybind. For example: `unconsumed:ctrl+a=reload_config`. `global:` and\n `all:`-prefixed keybinds will always consume the input regardless of\n this setting. Since they are not associated with a specific terminal\n surface, they're never encoded.\n\n Available since: 1.0.0\n\n * `performable:`\n\n Only consume the input if the action is able to be performed.\n For example, the `copy_to_clipboard` action will only consume the input\n if there is a selection to copy. If there is no selection, Ghostty\n behaves as if the keybind was not set. This has no effect with `global:`\n or `all:`-prefixed keybinds. For key sequences, this will reset the\n sequence if the action is not performable (acting identically to not\n having a keybind set at all).\n\n Performable keybinds will not appear as menu shortcuts in the\n application menu. This is because the menu shortcuts force the\n action to be performed regardless of the state of the terminal.\n Performable keybinds will still work, they just won't appear as\n a shortcut label in the menu.\n\n Available since: 1.1.0\n\nKeybind triggers are not unique per prefix combination. For example,\n`ctrl+a` and `global:ctrl+a` are not two separate keybinds. The keybind\nset later will overwrite the keybind set earlier. In this case, the\n`global:` keybind will be used.\n\nMultiple prefixes can be specified. For example,\n`global:unconsumed:ctrl+a=reload_config` will make the keybind global\nand not consume the input to reload the config.\n\nOn macOS, this feature requires accessibility permissions to be granted\nto Ghostty. When a `global:` keybind is specified and Ghostty is launched\nor reloaded, Ghostty will attempt to request these permissions.\nIf the permissions are not granted, the keybind will not work. On macOS,\nyou can find these permissions in System Preferences -\u003e Privacy \u0026 Security\n-\u003e Accessibility.\n\nSince Ghostty 1.4.0, global shortcuts on Linux are primarily supported\nthrough the [`vicinae-hotkey-v1`](https://github.com/vicinaehq/vicinae-wayland-protocols/tree/main/staging/vicinae-hotkey)\nprotocol, available out-of-the-box with the following Wayland compositors\nand desktop environments:\n\n - Hyprland since version 0.56.0\n\nOn X11 or when your Wayland compositor/desktop environment does not\nsupport `vicinae-hotkey-v1`, the much more widely-used\n[XDG Global Shortcuts](https://flatpak.github.io/xdg-desktop-portal/docs/doc-org.freedesktop.portal.GlobalShortcuts.html)\nprotocol is used instead.\n\nNote: XDG Global Shortcuts rely on a functional XDG Desktop Portal\nimplementation **that is designed to be used with your desktop environment\nor compositor**. Please make sure that you have the correct one installed.\n\nDesktop environments that are known to support the XDG Global Shortcuts\nprotocol include:\n\n - KDE Plasma since [5.27](https://kde.org/announcements/plasma/5/5.27.0/#wayland)\n with `xdg-desktop-portal-kde` installed\n\n - GNOME since [48](https://release.gnome.org/48/#and-thats-not-all) with\n `xdg-desktop-portal-gnome` installed\n\n - Hyprland before version 0.56.0, with `xdg-desktop-portal-hyprland`\n installed. **Some manual configuration is required.** Consult the steps\n outlined on the [Hyprland Wiki](https://wiki.hypr.land/Configuring/Basics/Binds/#dbus-global-shortcuts)\n to set up D-Bus-based global shortcuts correctly.\n\nDesktop environments and compositors that don't implement either protocol\ndo not support global shortcuts, like wlroots-based compositors e.g. Sway\n(see [upstream issue](https://github.com/emersion/xdg-desktop-portal-wlr/issues/240))\nand COSMIC.\n\n## Chained Actions\n\nA keybind can have multiple actions by using the `chain` keyword for\nsubsequent actions. When a keybind is activated, all chained actions are\nexecuted in order. The syntax is:\n\n```ini\nkeybind = ctrl+a=new_window\nkeybind = chain=goto_split:left\n```\n\nThis binds `ctrl+a` to first open a new window, then move focus to the\nleft split. Each `chain` entry appends an action to the most recently\ndefined keybind. You can chain as many actions as you want:\n\n```ini\nkeybind = ctrl+a=new_window\nkeybind = chain=goto_split:left\nkeybind = chain=toggle_fullscreen\n```\n\nChained actions cannot have prefixes like `global:` or `unconsumed:`.\nThe flags from the original keybind apply to the entire chain.\n\nChained actions work with key sequences as well. For example:\n\n```ini\nkeybind = ctrl+a\u003en=new_window\nkeybind = chain=goto_split:left\n````\n\nChains with key sequences apply to the most recent binding in the\nsequence.\n\nChained keybinds are available since Ghostty 1.3.0.\n\n## Key Tables\n\nYou may also create a named set of keybindings known as a \"key table.\"\nA key table must be explicitly activated for the bindings to become\navailable. This can be used to implement features such as a\n\"copy mode\", \"vim mode\", etc. Generically, this can implement modal\nkeyboard input.\n\nKey tables are defined using the syntax `\u003ctable\u003e/\u003cbinding\u003e`. The\n`\u003cbinding\u003e` value is everything documented above for keybinds. The\n`\u003ctable\u003e` value is the name of the key table. Table names can contain\nanything except `/`, `=`, `+`, and `\u003e`. The characters `+` and `\u003e` are\nreserved for keybind syntax (modifier combinations and key sequences).\nFor example `foo/ctrl+a=new_window` defines a binding within a table\nnamed `foo`.\n\nTables are activated and deactivated using the binding actions\n`activate_key_table:\u003cname\u003e` and `deactivate_key_table`. Other table\nrelated binding actions also exist; see the documentation for a full list.\nThese are the primary way to interact with key tables.\n\nBinding lookup proceeds from the innermost table outward, so keybinds in\nthe default table remain available unless explicitly unbound in an inner\ntable.\n\nA key table has some special syntax and handling:\n\n * `\u003cname\u003e/` (with no binding) defines and clears a table, resetting all\n of its keybinds and settings.\n\n * You cannot activate a table that is already the innermost table; such\n attempts are ignored. However, the same table can appear multiple times\n in the stack as long as it is not innermost (e.g., `A -\u003e B -\u003e A -\u003e B`\n is valid, but `A -\u003e B -\u003e B` is not).\n\n * A table can be activated in one-shot mode using\n `activate_key_table_once:\u003cname\u003e`. A one-shot table is automatically\n deactivated when any non-catch-all binding is invoked.\n\n * Key sequences work within tables: `foo/ctrl+a\u003ectrl+b=new_window`.\n If an invalid key is pressed, the sequence ends but the table remains\n active.\n\n * Chain actions work within tables, the `chain` keyword applies to\n the most recently defined binding in the table. e.g. if you set\n `table/ctrl+a=new_window` you can chain by using `chain=text:hello`.\n Important: chain itself doesn't get prefixed with the table name,\n since it applies to the most recent binding in any table.\n\n * Prefixes like `global:` work within tables:\n `foo/global:ctrl+a=new_window`.\n\nKey tables are available since Ghostty 1.3.0.", "defaults": [ "super+shift+,=reload_config", "super+,=open_config:os_open", "copy=copy_to_clipboard:mixed", "paste=paste_from_clipboard", "super+c=copy_to_clipboard:mixed", "super+v=paste_from_clipboard", "super+==increase_font_size:1", "super++=increase_font_size:1", "super+-=decrease_font_size:1", "super+0=reset_font_size", "super+ctrl+shift+j=write_screen_file:copy,plain", "super+shift+j=write_screen_file:paste,plain", "super+alt+shift+j=write_screen_file:open,plain", "shift+arrow_left=adjust_selection:left", "shift+arrow_right=adjust_selection:right", "shift+arrow_up=adjust_selection:up", "shift+arrow_down=adjust_selection:down", "shift+page_up=adjust_selection:page_up", "shift+page_down=adjust_selection:page_down", "shift+home=adjust_selection:home", "shift+end=adjust_selection:end", "ctrl+shift+tab=previous_tab", "ctrl+tab=next_tab", "super+digit_1=goto_tab:1", "super+1=goto_tab:1", "super+digit_2=goto_tab:2", "super+2=goto_tab:2", "super+digit_3=goto_tab:3", "super+3=goto_tab:3", "super+digit_4=goto_tab:4", "super+4=goto_tab:4", "super+digit_5=goto_tab:5", "super+5=goto_tab:5", "super+digit_6=goto_tab:6", "super+6=goto_tab:6", "super+digit_7=goto_tab:7", "super+7=goto_tab:7", "super+digit_8=goto_tab:8", "super+8=goto_tab:8", "super+9=last_tab", "super+enter=toggle_fullscreen", "super+shift+enter=toggle_split_zoom", "super+shift+p=toggle_command_palette", "super+q=quit", "super+k=clear_screen", "super+a=select_all", "super+shift+t=undo", "super+z=undo", "super+shift+z=redo", "super+home=scroll_to_top", "super+end=scroll_to_bottom", "super+page_up=scroll_page_up", "super+page_down=scroll_page_down", "super+j=scroll_to_selection", "super+shift+arrow_up=jump_to_prompt:-1", "super+shift+arrow_down=jump_to_prompt:1", "super+n=new_window", "super+w=close_surface", "super+alt+w=close_tab:this", "super+shift+w=close_window", "super+alt+shift+w=close_all_windows", "super+t=new_tab", "super+shift+[=previous_tab", "super+shift+]=next_tab", "super+d=new_split:right", "super+shift+d=new_split:down", "super+[=goto_split:previous", "super+]=goto_split:next", "super+alt+arrow_up=goto_split:up", "super+alt+arrow_down=goto_split:down", "super+alt+arrow_left=goto_split:left", "super+alt+arrow_right=goto_split:right", "super+ctrl+arrow_up=resize_split:up,10", "super+ctrl+arrow_down=resize_split:down,10", "super+ctrl+arrow_left=resize_split:left,10", "super+ctrl+arrow_right=resize_split:right,10", "super+ctrl+==equalize_splits", "super+arrow_up=jump_to_prompt:-1", "super+arrow_down=jump_to_prompt:1", "super+f=start_search", "super+e=search_selection", "super+shift+f=end_search", "escape=end_search", "super+g=navigate_search:next", "super+shift+g=navigate_search:previous", "super+alt+i=inspector:toggle", "super+ctrl+f=toggle_fullscreen", "super+shift+v=paste_from_selection", "super+arrow_right=text:\\x05", "super+arrow_left=text:\\x01", "super+backspace=text:\\x15", "alt+arrow_left=esc:b", "alt+arrow_right=esc:f" ] }, { "key": "key-remap", "zigType": "KeyRemapSet", "kind": "text", "repeatable": true, "hint": "from=to, e.g. ctrl=super", "doc": "Remap modifier keys within Ghostty. This allows you to swap or reassign\nmodifier keys at the application level without affecting system-wide\nsettings.\n\nThe format is `from=to` where both `from` and `to` are modifier key names.\nYou can use generic names like `ctrl`, `alt`, `shift`, `super` (macOS:\n`cmd`/`command`) or sided names like `left_ctrl`, `right_alt`, etc.\n\nThis will NOT change keyboard layout or key encodings outside of Ghostty.\nFor example, on macOS, `option+a` may still produce `å` even if `option` is\nremapped to `ctrl`. Desktop environments usually handle key layout long\nbefore Ghostty receives the key events.\n\nExample:\n\n key-remap = ctrl=super\n key-remap = left_control=right_alt\n\nImportant notes:\n\n* This is a one-way remap. If you remap `ctrl=super`, then the physical\n Ctrl key acts as Super, but the Super key remains Super.\n\n* Remaps are not transitive. If you remap `ctrl=super` and `alt=ctrl`,\n pressing Alt will produce Ctrl, NOT Super.\n\n* This affects both keybind matching and terminal input encoding.\n This does NOT impact keyboard layout or how keys are interpreted\n prior to Ghostty receiving them. For example, `option+a` on macOS\n may still produce `å` even if `option` is remapped to `ctrl`.\n\n* Generic modifiers (e.g. `ctrl`) match both left and right physical keys.\n Use sided names (e.g. `left_ctrl`) to remap only one side.\n\nThere are other edge case scenarios that may not behave as expected\nbut are working as intended the way this feature is designed:\n\n* On macOS, bindings in the main menu will trigger before any remapping\n is done. This is because macOS itself handles menu activation and\n this happens before Ghostty receives the key event. To workaround\n this, you should unbind the menu items and rebind them using your\n desired modifier.\n\nThis configuration can be repeated to specify multiple remaps.", "defaults": [ "" ] }, { "key": "window-padding-x", "zigType": "WindowPadding", "kind": "padding", "doc": "Horizontal window padding. This applies padding between the terminal cells\nand the left and right window borders. The value is in points, meaning that\nit will be scaled appropriately for screen DPI.\n\nIf this value is set too large, the screen will render nothing, because the\ngrid will be completely squished by the padding. It is up to you as the user\nto pick a reasonable value. If you pick an unreasonable value, a warning\nwill appear in the logs.\n\nChanging this configuration at runtime will only affect new terminals, i.e.\nnew windows, tabs, etc.\n\nTo set a different left and right padding, specify two numerical values\nseparated by a comma. For example, `window-padding-x = 2,4` will set the\nleft padding to 2 and the right padding to 4. If you want to set both\npaddings to the same value, you can use a single value. For example,\n`window-padding-x = 2` will set both paddings to 2.", "defaults": [ "2" ] }, { "key": "window-padding-y", "zigType": "WindowPadding", "kind": "padding", "doc": "Vertical window padding. This applies padding between the terminal cells and\nthe top and bottom window borders. The value is in points, meaning that it\nwill be scaled appropriately for screen DPI.\n\nIf this value is set too large, the screen will render nothing, because the\ngrid will be completely squished by the padding. It is up to you as the user\nto pick a reasonable value. If you pick an unreasonable value, a warning\nwill appear in the logs.\n\nChanging this configuration at runtime will only affect new terminals,\ni.e. new windows, tabs, etc.\n\nTo set a different top and bottom padding, specify two numerical values\nseparated by a comma. For example, `window-padding-y = 2,4` will set the\ntop padding to 2 and the bottom padding to 4. If you want to set both\npaddings to the same value, you can use a single value. For example,\n`window-padding-y = 2` will set both paddings to 2.", "defaults": [ "2" ] }, { "key": "window-padding-balance", "zigType": "WindowPaddingBalance", "kind": "enum", "values": [ "false", "true", "equal" ], "doc": "The viewport dimensions are usually not perfectly divisible by the cell\nsize. In this case, some extra padding on the end of a column and the bottom\nof the final row may exist. If this is `true`, then this extra padding\nis automatically balanced between all four edges to minimize imbalance on\none side. If this is `false`, the top left grid cell will always hug the\nedge with zero padding other than what may be specified with the other\n`window-padding` options.\n\nIf other `window-padding` fields are set and this is `true`, this will still\napply. The other padding is applied first and may affect how many grid cells\nactually exist, and this is applied last in order to balance the padding\ngiven a certain viewport size and grid cell size.\n\nValid values are:\n\n* `false` - No balancing is applied.\n* `true` - Balance the padding, but cap the top padding to avoid\n excessive space above the first row. Any excess is shifted to the\n bottom.\n* `equal` - Balance the padding equally on all sides without any\n top-padding cap. (Available since: 1.4.0)", "defaults": [ "false" ] }, { "key": "window-padding-color", "zigType": "WindowPaddingColor", "kind": "enum", "values": [ "background", "extend", "extend-always" ], "doc": "The color of the padding area of the window. Valid values are:\n\n* `background` - The background color specified in `background`.\n* `extend` - Extend the background color of the nearest grid cell.\n* `extend-always` - Same as \"extend\" but always extends without applying\n any of the heuristics that disable extending noted below.\n\nThe \"extend\" value will be disabled in certain scenarios. On primary\nscreen applications (e.g. not something like Neovim), the color will not\nbe extended vertically if any of the following are true:\n\n* The nearest row has any cells that have the default background color.\n The thinking is that in this case, the default background color looks\n fine as a padding color.\n* The nearest row is a prompt row (requires shell integration). The\n thinking here is that prompts often contain powerline glyphs that\n do not look good extended.\n* The nearest row contains a perfect fit powerline character. These\n don't look good extended.", "defaults": [ "background" ] }, { "key": "window-vsync", "zigType": "bool", "kind": "bool", "doc": "Synchronize rendering with the screen refresh rate. If true, this will\nminimize tearing and align redraws with the screen but may cause input\nlatency. If false, this will maximize redraw frequency but may cause tearing,\nand under heavy load may use more CPU and power.\n\nThis defaults to true because out-of-sync rendering on macOS can\ncause kernel panics (macOS 14.4+) and performance issues for external\ndisplays over some hardware such as DisplayLink. If you want to minimize\ninput latency, set this to false with the known aforementioned risks.\n\nChanging this value at runtime will only affect new terminals.\n\nThis setting is only supported currently on macOS.", "defaults": [ "true" ] }, { "key": "window-inherit-working-directory", "zigType": "bool", "kind": "bool", "doc": "If true, new windows will inherit the working directory of the\npreviously focused window. If no window was previously focused, the default\nworking directory will be used (the `working-directory` option).", "defaults": [ "true" ] }, { "key": "tab-inherit-working-directory", "zigType": "bool", "kind": "bool", "doc": "If true, new tabs will inherit the working directory of the\npreviously focused tab. If no tab was previously focused, the default\nworking directory will be used (the `working-directory` option).", "defaults": [ "true" ] }, { "key": "split-inherit-working-directory", "zigType": "bool", "kind": "bool", "doc": "If true, new split panes will inherit the working directory of the\npreviously focused split. If no split was previously focused, the default\nworking directory will be used (the `working-directory` option).", "defaults": [ "true" ] }, { "key": "window-inherit-font-size", "zigType": "bool", "kind": "bool", "doc": "If true, new windows and tabs will inherit the font size of the previously\nfocused window. If no window was previously focused, the default font size\nwill be used. If this is false, the default font size specified in the\nconfiguration `font-size` will be used.", "defaults": [ "true" ] }, { "key": "window-decoration", "zigType": "WindowDecoration", "kind": "enum", "values": [ "auto", "client", "server", "none" ], "doc": "Configure a preference for window decorations. This setting specifies\na _preference_; the actual OS, desktop environment, window manager, etc.\nmay override this preference. Ghostty will do its best to respect this\npreference but it may not always be possible.\n\nValid values:\n\n * `none`\n\n All window decorations will be disabled. Titlebar, borders, etc. will\n not be shown. On macOS, this will also disable tabs (enforced by the\n system).\n\n * `auto`\n\n Automatically decide to use either client-side or server-side\n decorations based on the detected preferences of the current OS and\n desktop environment. This option usually makes Ghostty look the most\n \"native\" for your desktop.\n\n * `client`\n\n Prefer client-side decorations.\n\n Available since: 1.1.0\n\n * `server`\n\n Prefer server-side decorations. This is only relevant on Linux with GTK,\n either on X11, or Wayland on a compositor that supports the\n `org_kde_kwin_server_decoration` protocol (e.g. KDE Plasma, but almost\n any non-GNOME desktop supports this protocol).\n\n If `server` is set but the environment doesn't support server-side\n decorations, client-side decorations will be used instead.\n\n Available since: 1.1.0\n\nThe default value is `auto`.\n\nFor the sake of backwards compatibility and convenience, this setting also\naccepts boolean true and false values. If set to `true`, this is equivalent\nto `auto`. If set to `false`, this is equivalent to `none`.\nThis is convenient for users who live primarily on systems that don't\ndifferentiate between client and server-side decorations (e.g. macOS and\nWindows).\n\nThe \"toggle_window_decorations\" keybind action can be used to create\na keybinding to toggle this setting at runtime.\n\nmacOS: To hide the titlebar without removing the native window borders\n or rounded corners, use `macos-titlebar-style = hidden` instead.", "defaults": [ "auto" ] }, { "key": "window-title-font-family", "zigType": "?[:0]const u8", "kind": "font", "doc": "The font that will be used for the application's window and tab titles.\n\nIf this setting is left unset, the system default font will be used.\n\nNote: any font available on the system may be used, this font is not\nrequired to be a fixed-width font.\n\nAvailable since: 1.0.0 on macOS, 1.1.0 on GTK", "defaults": [ "" ] }, { "key": "window-subtitle", "zigType": "WindowSubtitle", "kind": "enum", "values": [ "false", "working-directory" ], "doc": "The text that will be displayed in the subtitle of the window. Valid values:\n\n * `false` - Disable the subtitle.\n * `working-directory` - Set the subtitle to the working directory of the\n surface.\n\nThis feature is only supported on GTK.\n\nAvailable since: 1.1.0", "defaults": [ "false" ] }, { "key": "window-theme", "zigType": "WindowTheme", "kind": "enum", "values": [ "auto", "system", "light", "dark", "ghostty" ], "doc": "The theme to use for the windows. Valid values:\n\n * `auto` - Determine the theme based on the configured terminal\n background color. This has no effect if the \"theme\" configuration\n has separate light and dark themes. In that case, the behavior\n of \"auto\" is equivalent to \"system\".\n * `system` - Use the system theme.\n * `light` - Use the light theme regardless of system theme.\n * `dark` - Use the dark theme regardless of system theme.\n * `ghostty` - Use the background and foreground colors specified in the\n Ghostty configuration. This is only supported on Linux builds.\n\nOn macOS, if `macos-titlebar-style` is `tabs` or `transparent`, the window theme will be\nautomatically set based on the luminosity of the terminal background color.\nThis only applies to terminal windows. This setting will still apply to\nnon-terminal windows within Ghostty.\n\nThis is currently only supported on macOS and Linux.", "defaults": [ "auto" ] }, { "key": "window-colorspace", "zigType": "WindowColorspace", "kind": "enum", "values": [ "srgb", "display-p3" ], "doc": "The color space to use when interpreting terminal colors. \"Terminal colors\"\nrefers to colors specified in your configuration and colors produced by\ndirect-color SGR sequences.\n\nValid values:\n\n * `srgb` - Interpret colors in the sRGB color space. This is the default.\n * `display-p3` - Interpret colors in the Display P3 color space.\n\nThis setting is currently only supported on macOS.", "defaults": [ "srgb" ] }, { "key": "window-height", "zigType": "u32", "kind": "int", "min": 0, "max": 4294967295, "doc": "The initial window size. This size is in terminal grid cells by default.\nBoth values must be set to take effect. If only one value is set, it is\nignored.\n\nWe don't currently support specifying a size in pixels but a future change\ncan enable that. If this isn't specified, the app runtime will determine\nsome default size.\n\nNote that the window manager may put limits on the size or override the\nsize. For example, a tiling window manager may force the window to be a\ncertain size to fit within the grid. There is nothing Ghostty will do about\nthis, but it will make an effort.\n\nSizes larger than the screen size will be clamped to the screen size.\nThis can be used to create a maximized-by-default window size.\n\nThis will not affect new tabs, splits, or other nested terminal elements.\nThis only affects the initial window size of any new window. Changing this\nvalue will not affect the size of the window after it has been created. This\nis only used for the initial size.\n\nBUG: On Linux with GTK, the calculated window size will not properly take\ninto account window decorations. As a result, the grid dimensions will not\nexactly match this configuration. If window decorations are disabled (see\n`window-decoration`), then this will work as expected.\n\nWindows smaller than 10 wide by 4 high are not allowed.", "defaults": [ "0" ] }, { "key": "window-width", "zigType": "u32", "kind": "int", "min": 0, "max": 4294967295, "doc": "The initial window size. This size is in terminal grid cells by default.\nBoth values must be set to take effect. If only one value is set, it is\nignored.\n\nWe don't currently support specifying a size in pixels but a future change\ncan enable that. If this isn't specified, the app runtime will determine\nsome default size.\n\nNote that the window manager may put limits on the size or override the\nsize. For example, a tiling window manager may force the window to be a\ncertain size to fit within the grid. There is nothing Ghostty will do about\nthis, but it will make an effort.\n\nSizes larger than the screen size will be clamped to the screen size.\nThis can be used to create a maximized-by-default window size.\n\nThis will not affect new tabs, splits, or other nested terminal elements.\nThis only affects the initial window size of any new window. Changing this\nvalue will not affect the size of the window after it has been created. This\nis only used for the initial size.\n\nBUG: On Linux with GTK, the calculated window size will not properly take\ninto account window decorations. As a result, the grid dimensions will not\nexactly match this configuration. If window decorations are disabled (see\n`window-decoration`), then this will work as expected.\n\nWindows smaller than 10 wide by 4 high are not allowed.", "defaults": [ "0" ] }, { "key": "window-position-x", "zigType": "?i16", "kind": "int", "min": -32768, "max": 32767, "doc": "The starting window position. This position is in pixels and is relative\nto the top-left corner of the primary monitor. Both values must be set to take\neffect. If only one value is set, it is ignored.\n\nNote that the window manager may put limits on the position or override\nthe position. For example, a tiling window manager may force the window\nto be a certain position to fit within the grid. There is nothing Ghostty\nwill do about this, but it will make an effort.\n\nAlso note that negative values are also up to the operating system and\nwindow manager. Some window managers may not allow windows to be placed\noff-screen.\n\nInvalid positions are runtime-specific, but generally the positions are\nclamped to the nearest valid position.\n\nOn macOS, the window position is relative to the top-left corner of\nthe visible screen area. This means that if the menu bar is visible, the\nwindow will be placed below the menu bar.\n\nNote: this is only supported on macOS. The GTK runtime does not support\nsetting the window position, as windows are only allowed position\nthemselves in X11 and not Wayland.", "defaults": [ "" ] }, { "key": "window-position-y", "zigType": "?i16", "kind": "int", "min": -32768, "max": 32767, "doc": "The starting window position. This position is in pixels and is relative\nto the top-left corner of the primary monitor. Both values must be set to take\neffect. If only one value is set, it is ignored.\n\nNote that the window manager may put limits on the position or override\nthe position. For example, a tiling window manager may force the window\nto be a certain position to fit within the grid. There is nothing Ghostty\nwill do about this, but it will make an effort.\n\nAlso note that negative values are also up to the operating system and\nwindow manager. Some window managers may not allow windows to be placed\noff-screen.\n\nInvalid positions are runtime-specific, but generally the positions are\nclamped to the nearest valid position.\n\nOn macOS, the window position is relative to the top-left corner of\nthe visible screen area. This means that if the menu bar is visible, the\nwindow will be placed below the menu bar.\n\nNote: this is only supported on macOS. The GTK runtime does not support\nsetting the window position, as windows are only allowed position\nthemselves in X11 and not Wayland.", "defaults": [ "" ] }, { "key": "window-save-state", "zigType": "WindowSaveState", "kind": "enum", "values": [ "default", "never", "always" ], "doc": "Whether to enable saving and restoring window state. Window state includes\ntheir position, size, tabs, splits, etc. Some window state requires shell\nintegration, such as preserving working directories. See `shell-integration`\nfor more information.\n\nThere are three valid values for this configuration:\n\n * `default` will use the default system behavior. On macOS, this\n will only save state if the application is forcibly terminated\n or if it is configured systemwide via Settings.app.\n\n * `never` will never save window state.\n\n * `always` will always save window state whenever Ghostty is exited.\n\nIf you change this value to `never` while Ghostty is not running, the next\nGhostty launch will NOT restore the window state.\n\nIf you change this value to `default` while Ghostty is not running and the\nprevious exit saved state, the next Ghostty launch will still restore the\nwindow state. This is because Ghostty cannot know if the previous exit was\ndue to a forced save or not (macOS doesn't provide this information).\n\nIf you change this value so that window state is saved while Ghostty is not\nrunning, the previous window state will not be restored because Ghostty only\nsaves state on exit if this is enabled.\n\nThe default value is `default`.\n\nThis is currently only supported on macOS. This has no effect on Linux.", "defaults": [ "default" ] }, { "key": "window-step-resize", "zigType": "bool", "kind": "bool", "doc": "Resize the window in discrete increments of the focused surface's cell size.\nIf this is disabled, surfaces are resized in pixel increments. Currently\nonly supported on macOS.", "defaults": [ "false" ] }, { "key": "window-new-tab-position", "zigType": "WindowNewTabPosition", "kind": "enum", "values": [ "current", "end" ], "doc": "The position where new tabs are created. Valid values:\n\n * `current` - Insert the new tab after the currently focused tab,\n or at the end if there are no focused tabs.\n\n * `end` - Insert the new tab at the end of the tab list.", "defaults": [ "current" ] }, { "key": "window-show-tab-bar", "zigType": "WindowShowTabBar", "kind": "enum", "values": [ "always", "auto", "never" ], "doc": "Whether to show the tab bar.\n\nValid values:\n\n - `always`\n\n Always display the tab bar, even when there's only one tab.\n\n Available since: 1.2.0\n\n - `auto` *(default)*\n\n Automatically show and hide the tab bar. The tab bar is only\n shown when there are two or more tabs present.\n\n - `never`\n\n Never show the tab bar. Tabs are only accessible via the tab\n overview or by keybind actions.\n\nCurrently only supported on Linux (GTK).", "defaults": [ "auto" ] }, { "key": "window-titlebar-background", "zigType": "?Color", "kind": "color", "doc": "Background color for the window titlebar. This only takes effect if\nwindow-theme is set to ghostty. Currently only supported in the GTK app\nruntime.\n\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.", "defaults": [ "" ] }, { "key": "window-titlebar-foreground", "zigType": "?Color", "kind": "color", "doc": "Foreground color for the window titlebar. This only takes effect if\nwindow-theme is set to ghostty. Currently only supported in the GTK app\nruntime.\n\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.", "defaults": [ "" ] }, { "key": "drag-handle", "zigType": "DragHandle", "kind": "enum", "values": [ "always", "auto", "never" ], "doc": "Controls when drag handles are shown over splits,\nallowing splits to be rearranged with mouse controls.\n\nValid values:\n\n - `always`\n\n Always display the drag handle, even when there's only one split.\n\n - `auto` *(default)*\n\n Automatically show and hide the drag handle.\n\n On Linux, the handle is only shown when there are two or\n more splits present.\n\n On macOS, the handle is only hidden when there's one split\n in **fullscreen** mode, otherwise it's shown when hovered.\n\n - `never`\n\n Never show the drag handle. Splits then cannot be rearranged with\n mouse controls.\n\nAvailable since: 1.4.0.", "defaults": [ "auto" ] }, { "key": "resize-overlay", "zigType": "ResizeOverlay", "kind": "enum", "values": [ "always", "never", "after-first" ], "doc": "This controls when resize overlays are shown. Resize overlays are a\ntransient popup that shows the size of the terminal while the surfaces are\nbeing resized. The possible options are:\n\n * `always` - Always show resize overlays.\n * `never` - Never show resize overlays.\n * `after-first` - The resize overlay will not appear when the surface\n is first created, but will show up if the surface is\n subsequently resized.\n\nThe default is `after-first`.", "defaults": [ "after-first" ] }, { "key": "resize-overlay-position", "zigType": "ResizeOverlayPosition", "kind": "enum", "values": [ "center", "top-left", "top-center", "top-right", "bottom-left", "bottom-center", "bottom-right" ], "doc": "If resize overlays are enabled, this controls the position of the overlay.\nThe possible options are:\n\n * `center`\n * `top-left`\n * `top-center`\n * `top-right`\n * `bottom-left`\n * `bottom-center`\n * `bottom-right`\n\nThe default is `center`.", "defaults": [ "center" ] }, { "key": "resize-overlay-duration", "zigType": "Duration", "kind": "duration", "doc": "If resize overlays are enabled, this controls how long the overlay is\nvisible on the screen before it is hidden. The default is ¾ of a second or\n750 ms.\n\nThe duration is specified as a series of numbers followed by time units.\nWhitespace is allowed between numbers and units. Each number and unit will\nbe added together to form the total duration.\n\nThe allowed time units are as follows:\n\n * `y` - 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments\n are made for leap years or leap seconds.\n * `d` - one SI day, or 86400 seconds.\n * `h` - one hour, or 3600 seconds.\n * `m` - one minute, or 60 seconds.\n * `s` - one second.\n * `ms` - one millisecond, or 0.001 second.\n * `us` or `µs` - one microsecond, or 0.000001 second.\n * `ns` - one nanosecond, or 0.000000001 second.\n\nExamples:\n * `1h30m`\n * `45s`\n\nUnits can be repeated and will be added together. This means that\n`1h1h` is equivalent to `2h`. This is confusing and should be avoided.\nA future update may disallow this.\n\nThe maximum value is `584y 49w 23h 34m 33s 709ms 551µs 615ns`. Any\nvalue larger than this will be clamped to the maximum value.\n\nAvailable since 1.0.0", "defaults": [ "750ms" ] }, { "key": "focus-follows-mouse", "zigType": "bool", "kind": "bool", "doc": "If true, when there are multiple split panes, the mouse selects the pane\nthat is focused. This only applies to the currently focused window; e.g.\nmousing over a split in an unfocused window will not focus that split\nand bring the window to front.\n\nDefault is false.", "defaults": [ "false" ] }, { "key": "clipboard-read", "zigType": "ClipboardAccess", "kind": "enum", "values": [ "allow", "deny", "ask" ], "doc": "Whether to allow programs running in the terminal to read/write to the\nsystem clipboard (OSC 52, for googling). The default is to allow clipboard\nreading after prompting the user and allow writing unconditionally.\n\nValid values are:\n\n * `ask`\n * `allow`\n * `deny`", "defaults": [ "ask" ] }, { "key": "clipboard-write", "zigType": "ClipboardAccess", "kind": "enum", "values": [ "allow", "deny", "ask" ], "doc": "Whether to allow programs running in the terminal to read/write to the\nsystem clipboard (OSC 52, for googling). The default is to allow clipboard\nreading after prompting the user and allow writing unconditionally.\n\nValid values are:\n\n * `ask`\n * `allow`\n * `deny`", "defaults": [ "allow" ] }, { "key": "clipboard-write-limit-bytes", "zigType": "Limit(usize, 64 * 1024 * 1024)", "kind": "int", "values": [ "unlimited" ], "min": 0, "doc": "The maximum size in bytes of a single clipboard write by a program\nrunning in the terminal via the Kitty clipboard protocol (OSC 5522).\nThis doesn't apply to OSC 52, which is limited by the maximum length\nof an escape sequence hardcoded into Ghostty for now.\n\nData beyond the limit fails the entire write with an `EFBIG` status,\ndiscards the transaction, and leaves the clipboard untouched. Later\nwrite-related packets are ignored until a new write begins.\n\nThe data is buffered in memory while the write is in progress, so\nthis limit bounds how much memory a program can make Ghostty\nallocate per write. A future improvement will attempt to spool large\nwrites to disk.\n\nThe default is 64 MiB, the minimum a conforming implementation must\naccept. Set this to `unlimited` to remove the limit, allowing writes\nbounded only by available memory. A value of `0` rejects every non-empty\nwrite. To reject clipboard writes entirely, use `clipboard-write = deny`\ninstead.\n\nThis can be changed at runtime and applies to writes that begin\nafter the change.\n\nAvailable since: 1.4.0", "defaults": [ "67108864" ] }, { "key": "clipboard-trim-trailing-spaces", "zigType": "bool", "kind": "bool", "doc": "Trims trailing whitespace on data that is copied to the clipboard. This does\nnot affect data sent to the clipboard via `clipboard-write`. This only\napplies to trailing whitespace on lines that have other characters.\nCompletely blank lines always have their whitespace trimmed.", "defaults": [ "true" ] }, { "key": "clipboard-paste-protection", "zigType": "bool", "kind": "bool", "doc": "Require confirmation before pasting text that appears unsafe. This helps\nprevent a \"copy/paste attack\" where a user may accidentally execute unsafe\ncommands by pasting text with newlines or carriage returns.", "defaults": [ "true" ] }, { "key": "clipboard-paste-bracketed-safe", "zigType": "bool", "kind": "bool", "doc": "If true, bracketed pastes will be considered safe. By default, bracketed\npastes are considered safe. \"Bracketed\" pastes are pastes while the running\nprogram has bracketed paste mode enabled (a setting set by the running\nprogram, not the terminal emulator).", "defaults": [ "true" ] }, { "key": "title-report", "zigType": "bool", "kind": "bool", "doc": "Enables or disabled title reporting (CSI 21 t). This escape sequence\nallows the running program to query the terminal title. This is a common\nsecurity issue and is disabled by default.\n\nWarning: This can expose sensitive information at best and enable\narbitrary code execution at worst (with a maliciously crafted title\nand a minor amount of user interaction).\n\nAvailable since: 1.0.1", "defaults": [ "false" ] }, { "key": "image-storage-limit", "zigType": "u32", "kind": "int", "min": 0, "max": 4294967295, "doc": "The total amount of bytes that can be used for image data (e.g. the Kitty\nimage protocol) per terminal screen. The maximum value is 4,294,967,295\n(4GiB). The default is 320MB. If this is set to zero, then all image\nprotocols will be disabled.\n\nThis value is separate for primary and alternate screens so the effective\nlimit per surface is double.", "defaults": [ "320000000" ] }, { "key": "copy-on-select", "zigType": "CopyOnSelect", "kind": "enum", "values": [ "none", "primary", "clipboard", "both" ], "doc": "Whether to automatically copy selected text to the clipboard.\n\nValid values:\n\n* `none` - Do not copy selected text automatically.\n\n* `primary` - On Linux, copy to the selection clipboard only. This has no\n effect on macOS. (Available since: 1.4.0)\n\n* `clipboard` - Copy text to the system clipboard only.\n\n* `both` - Copy to both clipboards on Linux, and only the system clipboard\n on macOS. (Available since: 1.4.0)\n\nFor backward compatibility and convenience, a value of `true` is the same as\n`primary` on Linux and `clipboard` on macOS, and `false` is an alias for\n`none`.\n\nThe default value is `primary` on Linux and `none` otherwise.", "defaults": [ "none" ] }, { "key": "right-click-action", "zigType": "RightClickAction", "kind": "enum", "values": [ "ignore", "paste", "copy", "copy-or-paste", "context-menu" ], "doc": "The action to take when the user right-clicks on the terminal surface.\n\nValid values:\n * `context-menu` - Show the context menu.\n * `paste` - Paste the contents of the clipboard.\n * `copy` - Copy the selected text to the clipboard.\n * `copy-or-paste` - If there is a selection, copy the selected text to\n the clipboard; otherwise, paste the contents of the clipboard.\n * `ignore` - Do nothing, ignore the right-click.\n\nThe default value is `context-menu`.", "defaults": [ "context-menu" ] }, { "key": "middle-click-action", "zigType": "MiddleClickAction", "kind": "enum", "values": [ "primary-paste", "clipboard-paste", "ignore" ], "doc": "The action to take when the user middle-clicks on the terminal surface.\n\nValid values:\n * `primary-paste` - Paste from the selection clipboard on Linux.\n Does nothing on macOS.\n * `clipboard-paste` - Paste from the system clipboard.\n * `ignore` - Do nothing, ignore the middle click.\n\nThe default value is `primary-paste`.", "defaults": [ "primary-paste" ] }, { "key": "click-repeat-interval", "zigType": "u32", "kind": "int", "min": 0, "max": 4294967295, "doc": "The time in milliseconds between clicks to consider a click a repeat\n(double, triple, etc.) or an entirely new single click. A value of zero will\nuse a platform-specific default. The default on macOS is determined by the\nOS settings. On every other platform it is 500ms.", "defaults": [ "0" ] }, { "key": "config-file", "zigType": "RepeatablePath", "kind": "path", "repeatable": true, "hint": "prefix with ? to make the file optional", "doc": "Additional configuration files to read. This configuration can be repeated\nto read multiple configuration files. Configuration files themselves can\nload more configuration files. Paths are relative to the file containing the\n`config-file` directive. For command-line arguments, paths are relative to\nthe current working directory.\n\nPrepend a ? character to the file path to suppress errors if the file does\nnot exist. If you want to include a file that begins with a literal ?\ncharacter, surround the file path in double quotes (\").\n\nCycles are not allowed. If a cycle is detected, an error will be logged and\nthe configuration file will be ignored.\n\nConfiguration files are loaded after the configuration they're defined\nwithin in the order they're defined. **THIS IS A VERY SUBTLE BUT IMPORTANT\nPOINT.** To put it another way: configuration files do not take effect\nuntil after the entire configuration is loaded. For example, in the\nconfiguration below:\n\n```\nconfig-file = \"foo\"\na = 1\n```\n\nIf \"foo\" contains `a = 2`, the final value of `a` will be 2, because\n`foo` is loaded after the configuration file that configures the\nnested `config-file` value.", "defaults": [ "" ] }, { "key": "config-default-files", "zigType": "bool", "kind": "bool", "doc": "When this is true, the default configuration file paths will be loaded.\nThe default configuration file paths are currently only the XDG\nconfig path ($XDG_CONFIG_HOME/ghostty/config.ghostty).\n\nIf this is false, the default configuration paths will not be loaded.\nThis is targeted directly at using Ghostty from the CLI in a way\nthat minimizes external effects.\n\nThis is a CLI-only configuration. Setting this in a configuration file\nwill have no effect. It is not an error, but it will not do anything.\nThis configuration can only be set via CLI arguments.", "defaults": [ "true" ] }, { "key": "confirm-close-surface", "zigType": "ConfirmCloseSurface", "kind": "enum", "values": [ "false", "true", "always" ], "doc": "Confirms that a surface should be closed before closing it.\n\nThis defaults to `true`. If set to `false`, surfaces will close without\nany confirmation. This can also be set to `always`, which will always\nconfirm closing a surface, even if shell integration says a process isn't\nrunning.", "defaults": [ "true" ] }, { "key": "quit-after-last-window-closed", "zigType": "bool", "kind": "bool", "doc": "Whether or not to quit after the last surface is closed.\n\nThis defaults to `false` on macOS since that is standard behavior for\na macOS application. On Linux, this defaults to `true` since that is\ngenerally expected behavior.\n\nOn Linux, if this is `true`, Ghostty can delay quitting fully until a\nconfigurable amount of time has passed after the last window is closed.\nSee the documentation of `quit-after-last-window-closed-delay`.", "defaults": [ "false" ] }, { "key": "quit-after-last-window-closed-delay", "zigType": "?Duration", "kind": "duration", "doc": "Controls how long Ghostty will stay running after the last open surface has\nbeen closed. This only has an effect if `quit-after-last-window-closed` is\nalso set to `true`.\n\nThe minimum value for this configuration is `1s`. Any values lower than\nthis will be clamped to `1s`.\n\nThe duration is specified as a series of numbers followed by time units.\nWhitespace is allowed between numbers and units. Each number and unit will\nbe added together to form the total duration.\n\nThe allowed time units are as follows:\n\n * `y` - 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments\n are made for leap years or leap seconds.\n * `d` - one SI day, or 86400 seconds.\n * `h` - one hour, or 3600 seconds.\n * `m` - one minute, or 60 seconds.\n * `s` - one second.\n * `ms` - one millisecond, or 0.001 second.\n * `us` or `µs` - one microsecond, or 0.000001 second.\n * `ns` - one nanosecond, or 0.000000001 second.\n\nExamples:\n * `1h30m`\n * `45s`\n\nUnits can be repeated and will be added together. This means that\n`1h1h` is equivalent to `2h`. This is confusing and should be avoided.\nA future update may disallow this.\n\nThe maximum value is `584y 49w 23h 34m 33s 709ms 551µs 615ns`. Any\nvalue larger than this will be clamped to the maximum value.\n\nBy default `quit-after-last-window-closed-delay` is unset and\nGhostty will quit immediately after the last window is closed if\n`quit-after-last-window-closed` is `true`.\n\nOnly implemented on Linux.", "defaults": [ "" ] }, { "key": "initial-window", "zigType": "bool", "kind": "bool", "doc": "This controls whether an initial window is created when Ghostty\nis run. Note that if `quit-after-last-window-closed` is `true` and\n`quit-after-last-window-closed-delay` is set, setting `initial-window` to\n`false` will mean that Ghostty will quit after the configured delay if no\nwindow is ever created. Only implemented on Linux and macOS.", "defaults": [ "true" ] }, { "key": "undo-timeout", "zigType": "Duration", "kind": "duration", "doc": "The duration that undo operations remain available. After this\ntime, the operation will be removed from the undo stack and\ncannot be undone.\n\nThe default value is 5 seconds.\n\nThis timeout applies per operation, meaning that if you perform\nmultiple operations, each operation will have its own timeout.\nNew operations do not reset the timeout of previous operations.\n\nA timeout of zero will effectively disable undo operations. It is\nnot possible to set an infinite timeout, but you can set a very\nlarge timeout to effectively disable the timeout (on the order of years).\nThis is highly discouraged, as it will cause the undo stack to grow\nindefinitely, memory usage to grow unbounded, and terminal sessions\nto never actually quit.\n\nThe duration is specified as a series of numbers followed by time units.\nWhitespace is allowed between numbers and units. Each number and unit will\nbe added together to form the total duration.\n\nThe allowed time units are as follows:\n\n * `y` - 365 SI days, or 8760 hours, or 31536000 seconds. No adjustments\n are made for leap years or leap seconds.\n * `d` - one SI day, or 86400 seconds.\n * `h` - one hour, or 3600 seconds.\n * `m` - one minute, or 60 seconds.\n * `s` - one second.\n * `ms` - one millisecond, or 0.001 second.\n * `us` or `µs` - one microsecond, or 0.000001 second.\n * `ns` - one nanosecond, or 0.000000001 second.\n\nExamples:\n * `1h30m`\n * `45s`\n\nUnits can be repeated and will be added together. This means that\n`1h1h` is equivalent to `2h`. This is confusing and should be avoided.\nA future update may disallow this.\n\nThis configuration is only supported on macOS. Linux doesn't\nsupport undo operations at all so this configuration has no\neffect.\n\nAvailable since: 1.2.0", "defaults": [ "5s" ] }, { "key": "quick-terminal-position", "zigType": "QuickTerminalPosition", "kind": "enum", "values": [ "top", "bottom", "left", "right", "center" ], "doc": "The position of the \"quick\" terminal window. To learn more about the\nquick terminal, see the documentation for the `toggle_quick_terminal`\nbinding action.\n\nValid values are:\n\n * `top` - Terminal appears at the top of the screen.\n * `bottom` - Terminal appears at the bottom of the screen.\n * `left` - Terminal appears at the left of the screen.\n * `right` - Terminal appears at the right of the screen.\n * `center` - Terminal appears at the center of the screen.\n\nOn macOS, changing this configuration requires restarting Ghostty\ncompletely.\n\nNote: There is no default keybind for toggling the quick terminal.\nTo enable this feature, bind the `toggle_quick_terminal` action to a key.", "defaults": [ "top" ] }, { "key": "gtk-quick-terminal-layer", "zigType": "QuickTerminalLayer", "kind": "enum", "values": [ "overlay", "top", "bottom", "background" ], "doc": "The size of the quick terminal.\n\nThe size can be specified either as a percentage of the screen dimensions\n(height/width), or as an absolute size in pixels. Percentage values are\nsuffixed with `%` (e.g. `20%`) while pixel values are suffixed with `px`\n(e.g. `300px`). A bare value without a suffix is a config error.\n\nWhen only one size is specified, the size parameter affects the size of\nthe quick terminal on its *primary axis*, which depends on its position:\nheight for quick terminals placed on the top or bottom, and width for left\nor right. The primary axis of a centered quick terminal depends on the\nmonitor's orientation: height when on a landscape monitor, and width when\non a portrait monitor.\n\nThe *secondary axis* would be maximized for non-center positioned\nquick terminals unless another size parameter is specified, separated\nfrom the first by a comma (`,`). Percentage and pixel sizes can be mixed\ntogether: for instance, a size of `50%,500px` for a top-positioned quick\nterminal would be half a screen tall, and 500 pixels wide.\n\nAvailable since: 1.2.0\nThe layer of the quick terminal window. The higher the layer,\nthe more windows the quick terminal may conceal.\n\nValid values are:\n\n * `overlay`\n\n The quick terminal appears in front of all windows.\n\n * `top` (default)\n\n The quick terminal appears in front of normal windows but behind\n fullscreen overlays like lock screens.\n\n * `bottom`\n\n The quick terminal appears behind normal windows but in front of\n wallpapers and other windows in the background layer.\n\n * `background`\n\n The quick terminal appears behind all windows.\n\nGTK Wayland only.\n\nAvailable since: 1.2.0", "defaults": [ "top" ] }, { "key": "gtk-quick-terminal-namespace", "zigType": "[:0]const u8", "kind": "text", "doc": "The namespace for the quick terminal window.\n\nThis is an identifier that is used by the Wayland compositor and/or\nscripts to determine the type of layer surfaces and to possibly apply\nunique effects.\n\nGTK Wayland only.\n\nAvailable since: 1.2.0", "defaults": [ "ghostty-quick-terminal" ] }, { "key": "quick-terminal-screen", "zigType": "QuickTerminalScreen", "kind": "enum", "values": [ "main", "mouse", "macos-menu-bar" ], "doc": "The screen where the quick terminal should show up.\n\nValid values are:\n\n * `main` - The screen that the operating system recommends as the main\n screen. On macOS, this is the screen that is currently receiving\n keyboard input. This screen is defined by the operating system and\n not chosen by Ghostty.\n\n * `mouse` - The screen that the mouse is currently hovered over.\n\n * `macos-menu-bar` - The screen that contains the macOS menu bar as\n set in the display settings on macOS. This is a bit confusing because\n every screen on macOS has a menu bar, but this is the screen that\n contains the primary menu bar.\n\nThe default value is `main` because this is the recommended screen\nby the operating system.\n\nOn macOS, `macos-menu-bar` uses the screen containing the menu bar.\nOn Linux/Wayland, `macos-menu-bar` is treated as equivalent to `main`.\n\nNote: On Linux, there is no universal concept of a \"primary\" monitor.\nGhostty uses the compositor-reported primary output when available and\nfalls back to the first monitor reported by GDK if no primary output can\nbe resolved.", "defaults": [ "main" ] }, { "key": "quick-terminal-animation-duration", "zigType": "f64", "kind": "float", "doc": "Duration (in seconds) of the quick terminal enter and exit animation.\nSet it to 0 to disable animation completely. This can be changed at\nruntime.\n\nOnly implemented on macOS.", "defaults": [ "0.2" ] }, { "key": "quick-terminal-autohide", "zigType": "bool", "kind": "bool", "doc": "Automatically hide the quick terminal when focus shifts to another window.\nSet it to false for the quick terminal to remain open even when it loses focus.\n\nDefaults to true on macOS and on false on Linux/BSD. This is because global\nshortcuts on Linux require system configuration and are considerably less\naccessible than on macOS, meaning that it is more preferable to keep the\nquick terminal open until the user has completed their task.\nThis default may change in the future.", "defaults": [ "true" ] }, { "key": "quick-terminal-space-behavior", "zigType": "QuickTerminalSpaceBehavior", "kind": "enum", "values": [ "remain", "move" ], "doc": "This configuration option determines the behavior of the quick terminal\nwhen switching between macOS spaces. macOS spaces are virtual desktops\nthat can be manually created or are automatically created when an\napplication is in full-screen mode.\n\nValid values are:\n\n * `move` - When switching to another space, the quick terminal will\n also moved to the current space.\n\n * `remain` - The quick terminal will stay only in the space where it\n was originally opened and will not follow when switching to another\n space.\n\nThe default value is `move`.\n\nOnly implemented on macOS.\nOn Linux the behavior is always equivalent to `move`.\n\nAvailable since: 1.1.0", "defaults": [ "move" ] }, { "key": "quick-terminal-keyboard-interactivity", "zigType": "QuickTerminalKeyboardInteractivity", "kind": "enum", "values": [ "none", "on-demand", "exclusive" ], "doc": "Determines under which circumstances that the quick terminal should receive\nkeyboard input. See the corresponding [Wayland documentation](https://wayland.app/protocols/wlr-layer-shell-unstable-v1#zwlr_layer_surface_v1:enum:keyboard_interactivity)\nfor a more detailed explanation of the behavior of each option.\n\n\u003e [!NOTE]\n\u003e The exact behavior of each option may differ significantly across\n\u003e compositors -- experiment with them on your system to find one that\n\u003e suits your liking!\n\nValid values are:\n\n * `none`\n\n The quick terminal will not receive any keyboard input.\n\n * `on-demand` (default)\n\n The quick terminal would only receive keyboard input when it is focused.\n\n * `exclusive`\n\n The quick terminal will always receive keyboard input, even when another\n window is currently focused.\n\nOnly has an effect on Linux Wayland.\nOn macOS the behavior is always equivalent to `on-demand`.\n\nAvailable since: 1.2.0", "defaults": [ "on-demand" ] }, { "key": "shell-integration", "zigType": "ShellIntegration", "kind": "enum", "values": [ "none", "detect", "bash", "elvish", "fish", "nushell", "zsh" ], "doc": "Whether to enable shell integration auto-injection or not. Shell integration\ngreatly enhances the terminal experience by enabling a number of features:\n\n * Working directory reporting so new tabs, splits inherit the\n previous terminal's working directory.\n\n * Prompt marking that enables the \"jump_to_prompt\" keybinding.\n\n * If you're sitting at a prompt, closing a terminal will not ask\n for confirmation.\n\n * Resizing the window with a complex prompt usually paints much\n better.\n\nAllowable values are:\n\n * `none` - Do not do any automatic injection. You can still manually\n configure your shell to enable the integration.\n\n * `detect` - Detect the shell based on the filename.\n\n * `bash`, `elvish`, `fish`, `nushell`, `zsh` - Use this specific shell injection scheme.\n\nThe default value is `detect`.", "defaults": [ "detect" ] }, { "key": "shell-integration-features", "zigType": "ShellIntegrationFeatures", "kind": "flags", "flags": [ "cursor", "sudo", "title", "ssh-env", "ssh-terminfo", "path" ], "doc": "Shell integration features to enable. These require our shell integration\nto be loaded, either automatically via shell-integration or manually.\n\nThe format of this is a list of features to enable separated by commas. If\nyou prefix a feature with `no-` then it is disabled. If you omit a feature,\nits default value is used, so you must explicitly disable features you don't\nwant. You can also use `true` or `false` to turn all features on or off.\n\nExample: `cursor`, `no-cursor`, `sudo`, `no-sudo`, `title`, `no-title`\n\nAvailable features:\n\n * `cursor` - Set the cursor to a bar at the prompt.\n\n * `sudo` - Set sudo wrapper to preserve terminfo.\n\n * `title` - Set the window title via shell integration.\n\n * `ssh-env` - Enable SSH environment variable compatibility. Automatically\n converts TERM from `xterm-ghostty` to `xterm-256color` when connecting to\n remote hosts and propagates COLORTERM, TERM_PROGRAM, and TERM_PROGRAM_VERSION.\n Whether or not these variables will be accepted by the remote host(s) will\n depend on whether or not the variables are allowed in their sshd_config.\n (Available since: 1.2.0)\n\n * `ssh-terminfo` - Enable automatic terminfo installation on remote hosts.\n Attempts to install Ghostty's embedded terminfo entry using `tic` on local\n cache misses. Requires `tic` to be available on remote hosts. Successful\n installations are cached locally to avoid repeat installations.\n If desired, the `+ssh-cache` CLI action can be used to manage the installation\n cache manually using various arguments.\n (Available since: 1.2.0)\n\n * `path` - Add Ghostty's binary directory to PATH. This ensures the `ghostty`\n command is available in the shell even if shell init scripts reset PATH.\n This is particularly useful on macOS where PATH is often overridden by\n system scripts. The directory is only added if not already present.\n\nSSH features work independently and can be combined for optimal experience:\nwhen both `ssh-env` and `ssh-terminfo` are enabled, Ghostty will install its\nterminfo on remote hosts and use `xterm-ghostty` as TERM, falling back to\n`xterm-256color` with environment variables if terminfo installation fails.", "defaults": [ "cursor,no-sudo,title,no-ssh-env,no-ssh-terminfo,path" ] }, { "key": "command-palette-entry", "zigType": "RepeatableCommand", "kind": "text", "repeatable": true, "hint": "title:NAME,action:ACTION[,description:TEXT]", "doc": "Custom entries into the command palette.\n\nEach entry requires the title, the corresponding action, and an optional\ndescription. Each field should be prefixed with the field name, a colon\n(`:`), and then the specified value. The syntax for actions is identical\nto the one for keybind actions. Whitespace in between fields is ignored.\n\nIf you need to embed commas or any other special characters in the values,\nenclose the value in double quotes and it will be interpreted as a Zig\nstring literal. This is also useful for including whitespace at the\nbeginning or the end of a value. See the\n[Zig documentation](https://ziglang.org/documentation/master/#Escape-Sequences)\nfor more information on string literals. Note that multiline string literals\nare not supported.\n\nDouble quotes can not be used around the field names.\n\n```ini\ncommand-palette-entry = title:Reset Font Style, action:csi:0m\ncommand-palette-entry = title:Crash on Main Thread,description:Causes a crash on the main (UI) thread.,action:crash:main\ncommand-palette-entry = title:Focus Split: Right,description:\"Focus the split to the right, if it exists.\",action:goto_split:right\ncommand-palette-entry = title:\"Ghostty\",description:\"Add a little Ghostty to your terminal.\",action:\"text:\\xf0\\x9f\\x91\\xbb\"\n```\n\nThere are some additional special values that can be specified for\ncommand-palette-entry:\n\n * `command-palette-entry=clear` will clear all command entries. Warning: this\n removes ALL entries up to this point, including the default\n entries. Available since: 1.4.0\n\nBy default, the command palette is preloaded with most actions that might\nbe useful in an interactive setting yet do not have easily accessible or\nmemorizable shortcuts. The default entries can be restored by setting this\nsetting to an empty value:\n\n```ini\ncommand-palette-entry =\n```\n\nAvailable since: 1.2.0", "defaults": [ "title:\"Change Tab Title…\",description:\"Prompt for a new title for the current tab.\",action:\"prompt_tab_title\"", "title:\"Change Terminal Title…\",description:\"Prompt for a new title for the current terminal.\",action:\"prompt_surface_title\"", "title:\"Change Window Title…\",description:\"Prompt for a new title for the current window.\",action:\"prompt_window_title\"", "title:\"Check for Updates\",description:\"Check for updates to the application.\",action:\"check_for_updates\"", "title:\"Clear Screen\",description:\"Clear the screen and scrollback.\",action:\"clear_screen\"", "title:\"Close All Windows\",description:\"Close all windows.\",action:\"close_all_windows\"", "title:\"Close Other Tabs\",description:\"Close all tabs in this window except the current one.\",action:\"close_tab:other\"", "title:\"Close Tab\",description:\"Close the current tab.\",action:\"close_tab:this\"", "title:\"Close Tabs to the Right\",description:\"Close all tabs to the right of the current one.\",action:\"close_tab:right\"", "title:\"Close Terminal\",description:\"Close the current terminal.\",action:\"close_surface\"", "title:\"Close Window\",description:\"Close the current window.\",action:\"close_window\"", "title:\"Copy Screen as ANSI Sequences to Temporary File and Copy Path\",description:\"Copy the screen contents as ANSI escape sequences to a temporary file and copy the path to the clipboard.\",action:\"write_screen_file:copy,vt\"", "title:\"Copy Screen as ANSI Sequences to Temporary File and Open\",description:\"Copy the screen contents as ANSI escape sequences to a temporary file and open it.\",action:\"write_screen_file:open,vt\"", "title:\"Copy Screen as ANSI Sequences to Temporary File and Paste Path\",description:\"Copy the screen contents as ANSI escape sequences to a temporary file and paste the path to the file.\",action:\"write_screen_file:paste,vt\"", "title:\"Copy Screen as HTML to Temporary File and Copy Path\",description:\"Copy the screen contents as HTML to a temporary file and copy the path to the clipboard.\",action:\"write_screen_file:copy,html\"", "title:\"Copy Screen as HTML to Temporary File and Open\",description:\"Copy the screen contents as HTML to a temporary file and open it.\",action:\"write_screen_file:open,html\"", "title:\"Copy Screen as HTML to Temporary File and Paste Path\",description:\"Copy the screen contents as HTML to a temporary file and paste the path to the file.\",action:\"write_screen_file:paste,html\"", "title:\"Copy Screen to Temporary File and Copy Path\",description:\"Copy the screen contents to a temporary file and copy the path to the clipboard.\",action:\"write_screen_file:copy,plain\"", "title:\"Copy Screen to Temporary File and Open\",description:\"Copy the screen contents to a temporary file and open it.\",action:\"write_screen_file:open,plain\"", "title:\"Copy Screen to Temporary File and Paste Path\",description:\"Copy the screen contents to a temporary file and paste the path to the file.\",action:\"write_screen_file:paste,plain\"", "title:\"Copy Selection as ANSI Sequences to Clipboard\",description:\"Copy the selected text as ANSI escape sequences to the clipboard.\",action:\"copy_to_clipboard:vt\"", "title:\"Copy Selection as ANSI Sequences to Temporary File and Copy Path\",description:\"Copy the selection contents as ANSI escape sequences to a temporary file and copy the path to the clipboard.\",action:\"write_selection_file:copy,vt\"", "title:\"Copy Selection as ANSI Sequences to Temporary File and Open\",description:\"Copy the selection contents as ANSI escape sequences to a temporary file and open it.\",action:\"write_selection_file:open,vt\"", "title:\"Copy Selection as ANSI Sequences to Temporary File and Paste Path\",description:\"Copy the selection contents as ANSI escape sequences to a temporary file and paste the path to the file.\",action:\"write_selection_file:paste,vt\"", "title:\"Copy Selection as HTML to Clipboard\",description:\"Copy the selected text as HTML to the clipboard.\",action:\"copy_to_clipboard:html\"", "title:\"Copy Selection as HTML to Temporary File and Copy Path\",description:\"Copy the selection contents as HTML to a temporary file and copy the path to the clipboard.\",action:\"write_selection_file:copy,html\"", "title:\"Copy Selection as HTML to Temporary File and Open\",description:\"Copy the selection contents as HTML to a temporary file and open it.\",action:\"write_selection_file:open,html\"", "title:\"Copy Selection as HTML to Temporary File and Paste Path\",description:\"Copy the selection contents as HTML to a temporary file and paste the path to the file.\",action:\"write_selection_file:paste,html\"", "title:\"Copy Selection as Plain Text to Clipboard\",description:\"Copy the selected text as plain text to the clipboard.\",action:\"copy_to_clipboard:plain\"", "title:\"Copy Selection to Temporary File and Copy Path\",description:\"Copy the selection contents to a temporary file and copy the path to the clipboard.\",action:\"write_selection_file:copy,plain\"", "title:\"Copy Selection to Temporary File and Open\",description:\"Copy the selection contents to a temporary file and open it.\",action:\"write_selection_file:open,plain\"", "title:\"Copy Selection to Temporary File and Paste Path\",description:\"Copy the selection contents to a temporary file and paste the path to the file.\",action:\"write_selection_file:paste,plain\"", "title:\"Copy Terminal Title to Clipboard\",description:\"Copy the terminal title to the clipboard. If the terminal title is not set this has no effect.\",action:\"copy_title_to_clipboard\"", "title:\"Copy to Clipboard\",description:\"Copy the selected text to the clipboard in both plain and styled formats.\",action:\"copy_to_clipboard:mixed\"", "title:\"Copy URL to Clipboard\",description:\"Copy the URL under the cursor to the clipboard.\",action:\"copy_url_to_clipboard\"", "title:\"Decrease Font Size\",description:\"Decrease the font size by 1 point.\",action:\"decrease_font_size:1\"", "title:\"End Search\",description:\"End the current search if any and hide any GUI elements.\",action:\"end_search\"", "title:\"Equalize Splits\",description:\"Equalize the size of all splits.\",action:\"equalize_splits\"", "title:\"Focus Split: Down\",description:\"Focus the split below, if it exists.\",action:\"goto_split:down\"", "title:\"Focus Split: Left\",description:\"Focus the split to the left, if it exists.\",action:\"goto_split:left\"", "title:\"Focus Split: Next\",description:\"Focus the next split, if any.\",action:\"goto_split:next\"", "title:\"Focus Split: Previous\",description:\"Focus the previous split, if any.\",action:\"goto_split:previous\"", "title:\"Focus Split: Right\",description:\"Focus the split to the right, if it exists.\",action:\"goto_split:right\"", "title:\"Focus Split: Up\",description:\"Focus the split above, if it exists.\",action:\"goto_split:up\"", "title:\"Focus Window: Next\",description:\"Focus the next window, if any.\",action:\"goto_window:next\"", "title:\"Focus Window: Previous\",description:\"Focus the previous window, if any.\",action:\"goto_window:previous\"", "title:\"Ghostty\",description:\"Put a little Ghostty in your terminal.\",action:\"text:👻\"", "title:\"Increase Font Size\",description:\"Increase the font size by 1 point.\",action:\"increase_font_size:1\"", "title:\"Move Tab Left\",description:\"Move the current tab to the left.\",action:\"move_tab:-1\"", "title:\"Move Tab Right\",description:\"Move the current tab to the right.\",action:\"move_tab:1\"", "title:\"Move Tab to New Window\",description:\"Move the current tab to a new window.\",action:\"move_tab_to_new_window\"", "title:\"New Tab\",description:\"Open a new tab.\",action:\"new_tab\"", "title:\"New Window\",description:\"Open a new window.\",action:\"new_window\"", "title:\"Next Search Result\",description:\"Navigate to the next search result, if any.\",action:\"navigate_search:next\"", "title:\"Open Config in New Terminal Window\",description:\"Open the config file in a new window using $EDITOR or $VISUAL.\",action:\"open_config:new_window\"", "title:\"Open Config Using OS editor\",description:\"Open the config file with the OS's default editor.\",action:\"open_config:os_open\"", "title:\"Paste from Clipboard\",description:\"Paste the contents of the main clipboard.\",action:\"paste_from_clipboard\"", "title:\"Paste from Selection\",description:\"Paste the contents of the selection clipboard.\",action:\"paste_from_selection\"", "title:\"Previous Search Result\",description:\"Navigate to the previous search result, if any.\",action:\"navigate_search:previous\"", "title:\"Quit\",description:\"Quit the application.\",action:\"quit\"", "title:\"Redo\",description:\"Redo the last undone action.\",action:\"redo\"", "title:\"Reload Config\",description:\"Reload the config file.\",action:\"reload_config\"", "title:\"Reset Font Size\",description:\"Reset the font size to the default.\",action:\"reset_font_size\"", "title:\"Reset Terminal\",description:\"Reset the terminal to a clean state.\",action:\"reset\"", "title:\"Reset Window Size\",description:\"Reset the window size to the default.\",action:\"reset_window_size\"", "title:\"Scroll Page Down\",description:\"Scroll the screen down by a page.\",action:\"scroll_page_down\"", "title:\"Scroll Page Up\",description:\"Scroll the screen up by a page.\",action:\"scroll_page_up\"", "title:\"Scroll to Bottom\",description:\"Scroll to the bottom of the screen.\",action:\"scroll_to_bottom\"", "title:\"Scroll to Selection\",description:\"Scroll to the selected text.\",action:\"scroll_to_selection\"", "title:\"Scroll to Top\",description:\"Scroll to the top of the screen.\",action:\"scroll_to_top\"", "title:\"Search Selection\",description:\"Start a search for the current text selection.\",action:\"search_selection\"", "title:\"Select All\",description:\"Select all text on the screen.\",action:\"select_all\"", "title:\"Show On-Screen Keyboard\",description:\"Show the on-screen keyboard if present.\",action:\"show_on_screen_keyboard\"", "title:\"Show the GTK Inspector\",description:\"Show the GTK inspector.\",action:\"show_gtk_inspector\"", "title:\"Split Down\",description:\"Split the terminal down.\",action:\"new_split:down\"", "title:\"Split Left\",description:\"Split the terminal to the left.\",action:\"new_split:left\"", "title:\"Split Right\",description:\"Split the terminal to the right.\",action:\"new_split:right\"", "title:\"Split Up\",description:\"Split the terminal up.\",action:\"new_split:up\"", "title:\"Start Search\",description:\"Start a search if one isn't already active.\",action:\"start_search\"", "title:\"Toggle Background Opacity\",description:\"Toggle the background opacity of a window that started transparent.\",action:\"toggle_background_opacity\"", "title:\"Toggle Float on Top\",description:\"Toggle the float on top state of the current window.\",action:\"toggle_window_float_on_top\"", "title:\"Toggle Fullscreen\",description:\"Toggle the fullscreen state of the current window.\",action:\"toggle_fullscreen\"", "title:\"Toggle Inspector\",description:\"Toggle the inspector.\",action:\"inspector:toggle\"", "title:\"Toggle Maximize\",description:\"Toggle the maximized state of the current window.\",action:\"toggle_maximize\"", "title:\"Toggle Mouse Reporting\",description:\"Toggle whether mouse events are reported to terminal applications.\",action:\"toggle_mouse_reporting\"", "title:\"Toggle Read-Only Mode\",description:\"Toggle read-only mode for the current surface.\",action:\"toggle_readonly\"", "title:\"Toggle Secure Input\",description:\"Toggle secure input mode.\",action:\"toggle_secure_input\"", "title:\"Toggle Split Zoom\",description:\"Toggle the zoom state of the current split.\",action:\"toggle_split_zoom\"", "title:\"Toggle Tab Overview\",description:\"Toggle the tab overview.\",action:\"toggle_tab_overview\"", "title:\"Toggle Window Decorations\",description:\"Toggle the window decorations.\",action:\"toggle_window_decorations\"", "title:\"Undo\",description:\"Undo the last action.\",action:\"undo\"" ] }, { "key": "osc-color-report-format", "zigType": "OSCColorReportFormat", "kind": "enum", "values": [ "none", "8-bit", "16-bit" ], "doc": "Sets the reporting format for OSC sequences that request color information.\nGhostty currently supports OSC 10 (foreground), OSC 11 (background), and\nOSC 4 (256 color palette) queries, and by default the reported values\nare scaled-up RGB values, where each component are 16 bits. This is how\nmost terminals report these values. However, some legacy applications may\nrequire 8-bit, unscaled, components. We also support turning off reporting\naltogether. The components are lowercase hex values.\n\nAllowable values are:\n\n * `none` - OSC 4/10/11 queries receive no reply\n\n * `8-bit` - Color components are return unscaled, e.g. `rr/gg/bb`\n\n * `16-bit` - Color components are returned scaled, e.g. `rrrr/gggg/bbbb`\n\nThe default value is `16-bit`.", "defaults": [ "16-bit" ] }, { "key": "vt-kam-allowed", "zigType": "bool", "kind": "bool", "doc": "If true, allows the \"KAM\" mode (ANSI mode 2) to be used within\nthe terminal. KAM disables keyboard input at the request of the\napplication. This is not a common feature and is not recommended\nto be enabled. This will not be documented further because\nif you know you need KAM, you know. If you don't know if you\nneed KAM, you don't need it.", "defaults": [ "false" ] }, { "key": "vt-window-resize-allowed", "zigType": "bool", "kind": "bool", "doc": "If true, allows the running program to resize the window using the\nxterm `CSI 8 ; rows ; columns t` escape sequence. If a parameter is zero\nor omitted, the current size of that dimension is kept. Sizes smaller\nthan 40 columns by 10 rows are raised to that size so that a program\ncan't shrink the window to hide its output.\n\nThe request is ignored if the terminal is in a split, in a window with\nmultiple tabs, or the quick terminal, or if the window manager controls\nthe window size, such as when it is fullscreen, maximized, or tiled.\nSizes larger than the screen are clamped to the screen.\n\nThis is disabled by default because it lets any program, including one\nrunning on a remote machine, change the size of your window.\n\nAvailable since: 1.4.0", "defaults": [ "false" ] }, { "key": "vt-xt-checksum-report", "zigType": "bool", "kind": "bool", "doc": "Enables or disables checksum reporting (DECRQCRA, `CSI Pi ; Pg ; Pt ;\nPl ; Pb ; Pr * y`). This escape sequence allows the running program to\nask for a checksum of an area of the screen. Terminal test suites use it\nto check what is on the screen.\n\nThis is disabled by default because a program can ask for the checksum of\none cell at a time and so read back everything on the screen, including\nthe output of other programs.\n\nWhile this is disabled, XTCHECKSUM (`CSI Ps # y`), which changes how the\nchecksum is calculated, is ignored as well.\n\nAvailable since: 1.4.0", "defaults": [ "false" ] }, { "key": "vt-xt-checksum-extension", "zigType": "XtChecksumExtension", "kind": "flags", "flags": [ "negate", "attributes", "trim", "undrawn", "full" ], "doc": "How the checksum reported for DECRQCRA (see `vt-xt-checksum-report`) is\ncalculated. This is the calculation used after a reset, like xterm's\n`checksumExtension` resource. A running program can change it with\nXTCHECKSUM (`CSI Ps # y`) until the next reset. The default is the\ncalculation of a real DEC terminal.\n\nValid values are:\n\n * `negate` - Report the negated sum, as DEC terminals do.\n\n * `attributes` - Add bold, underline, blink, inverse, invisible, and\n protected attributes to the value of each cell.\n\n * `trim` - Omit plain spaces other than the first cell of the area.\n\n * `undrawn` - Count cells that were never written to as spaces\n instead of skipping them.\n\n * `full` - Use the full codepoint of each cell instead of the DEC\n 8-bit value.\n\nPrefix a value with `no-` to disable it. For example, esctest expects\n`no-negate,no-attributes,no-trim,full` when run with `--xterm-checksum`,\nwhich is xterm's `checksumExtension: 23`.\n\nThe bits of xterm's resource are described in its\n[man page](https://github.com/ThomasDickey/xterm-snapshots/blob/xterm-411/xterm.man#L2870-L2896)\nand its [control sequence documentation](https://github.com/ThomasDickey/xterm-snapshots/blob/xterm-411/ctlseqs.ms#L2562-L2569),\nbut where those disagree with xterm's\n[implementation](https://github.com/ThomasDickey/xterm-snapshots/blob/xterm-411/screen.c#L3162-L3290),\nGhostty follows the implementation. The documentation describes bit 3\nas omitting cells that were never written to, but xterm skips those\ncells by default and counts them as spaces with the bit set, which is\n`undrawn` here. It also lists a bit 5 that xterm doesn't implement.\n\nAvailable since: 1.4.0", "defaults": [ "negate,attributes,trim,no-undrawn,no-full" ] }, { "key": "custom-shader", "zigType": "RepeatablePath", "kind": "path", "repeatable": true, "hint": "prefix with ? to make the file optional", "doc": "Custom shaders to run after the default shaders. This is a file path\nto a GLSL-syntax shader for all platforms.\n\nWarning: Invalid shaders can cause Ghostty to become unusable such as by\ncausing the window to be completely black. If this happens, you can\nunset this configuration to disable the shader.\n\nCustom shader support is based on and compatible with the Shadertoy shaders.\nShaders should specify a `mainImage` function and the available uniforms\nlargely match Shadertoy, with some caveats and Ghostty-specific extensions.\n\nThe uniform values available to shaders are as follows:\n\n * `sampler2D iChannel0` - Input texture.\n\n A texture containing the current terminal screen. If multiple custom\n shaders are specified, the output of previous shaders is written to\n this texture, to allow combining multiple effects.\n\n * `vec3 iResolution` - Output texture size, `[width, height, 1]` (in px).\n\n * `float iTime` - Time in seconds since first frame was rendered.\n\n * `float iTimeDelta` - Time in seconds since previous frame was rendered.\n\n * `float iFrameRate` - Average framerate. (NOT CURRENTLY SUPPORTED)\n\n * `int iFrame` - Number of frames that have been rendered so far.\n\n * `float iChannelTime[4]` - Current time for video or sound input. (N/A)\n\n * `vec3 iChannelResolution[4]` - Resolutions of the 4 input samplers.\n\n Currently only `iChannel0` exists, and `iChannelResolution[0]` is\n identical to `iResolution`.\n\n * `vec4 iMouse` - Mouse input info. (NOT CURRENTLY SUPPORTED)\n\n * `vec4 iDate` - Date/time info. (NOT CURRENTLY SUPPORTED)\n\n * `float iSampleRate` - Sample rate for audio. (N/A)\n\nGhostty-specific extensions:\n\n * `vec4 iCurrentCursor` - Info about the terminal cursor.\n\n - `iCurrentCursor.xy` is the -X, +Y corner of the current cursor.\n - `iCurrentCursor.zw` is the width and height of the current cursor.\n\n * `vec4 iPreviousCursor` - Info about the previous terminal cursor.\n\n * `vec4 iCurrentCursorColor` - Color of the terminal cursor.\n\n * `vec4 iPreviousCursorColor` - Color of the previous terminal cursor.\n\n * `vec4 iCurrentCursorStyle` - Style of the terminal cursor\n\n Macros simplified use are defined for the various cursor styles:\n\n - `CURSORSTYLE_BLOCK` or `0`\n - `CURSORSTYLE_BLOCK_HOLLOW` or `1`\n - `CURSORSTYLE_BAR` or `2`\n - `CURSORSTYLE_UNDERLINE` or `3`\n - `CURSORSTYLE_LOCK` or `4`\n\n * `vec4 iPreviousCursorStyle` - Style of the previous terminal cursor\n\n * `vec4 iCursorVisible` - Visibility of the terminal cursor.\n\n * `float iTimeCursorChange` - Timestamp of terminal cursor change.\n\n When the terminal cursor changes position or color, this is set to\n the same time as the `iTime` uniform, allowing you to compute the\n time since the change by subtracting this from `iTime`.\n\n * `float iTimeFocus` - Timestamp when the surface last gained iFocus.\n\n When the surface gains focus, this is set to the current value of\n `iTime`, similar to how `iTimeCursorChange` works. This allows you\n to compute the time since focus was gained or lost by calculating\n `iTime - iTimeFocus`. Use this to create animations that restart\n when the terminal regains focus.\n\n * `int iFocus` - Current focus state of the surface.\n\n Set to 1.0 when the surface is focused, 0.0 when unfocused. This\n allows shaders to detect unfocused state and avoid animation artifacts\n from large time deltas caused by infrequent \"deceptive frames\"\n (e.g., modifier key presses, link hover events in unfocused split panes).\n Check `iFocus \u003e 0` to determine if the surface is currently focused.\n\n * `vec3 iPalette[256]` - The 256-color terminal palette.\n\n RGB values for all 256 colors in the terminal palette, normalized\n to [0.0, 1.0]. Index 0-15 are the ANSI colors, 16-231 are the 6x6x6\n color cube, and 232-255 are the grayscale colors.\n\n * `vec3 iBackgroundColor` - Terminal background color (RGB).\n\n * `vec3 iForegroundColor` - Terminal foreground color (RGB).\n\n * `vec3 iCursorColor` - Terminal cursor color (RGB).\n\n * `vec3 iCursorText` - Terminal cursor text color (RGB).\n\n * `vec3 iSelectionBackgroundColor` - Selection background color (RGB).\n\n * `vec3 iSelectionForegroundColor` - Selection foreground color (RGB).\n\nIf the shader fails to compile, the shader will be ignored. Any errors\nrelated to shader compilation will not show up as configuration errors\nand only show up in the log, since shader compilation happens after\nconfiguration loading on the dedicated render thread. For interactive\ndevelopment, use [shadertoy.com](https://shadertoy.com).\n\nThis can be repeated multiple times to load multiple shaders. The shaders\nwill be run in the order they are specified.\n\nThis can be changed at runtime and will affect all open terminals.", "defaults": [ "" ] }, { "key": "custom-shader-animation", "zigType": "CustomShaderAnimation", "kind": "enum", "values": [ "false", "true", "always" ], "doc": "If `true` (default), the focused terminal surface will run an animation\nloop when custom shaders are used. This uses slightly more CPU (generally\nless than 10%) but allows the shader to animate. This only runs if there\nare custom shaders and the terminal is focused.\n\nIf this is set to `false`, the terminal and custom shader will only render\nwhen the terminal is updated. This is more efficient but the shader will\nnot animate.\n\nThis can also be set to `always`, which will always run the animation\nloop regardless of whether the terminal is focused or not. The animation\nloop will still only run when custom shaders are used. Note that this\nwill use more CPU per terminal surface and can become quite expensive\ndepending on the shader and your terminal usage.\n\nThis can be changed at runtime and will affect all open terminals.", "defaults": [ "true" ] }, { "key": "bell-features", "zigType": "BellFeatures", "kind": "flags", "flags": [ "system", "audio", "attention", "title", "border" ], "doc": "Bell features to enable if bell support is available in your runtime. Not\nall features are available on all runtimes. The format of this is a list of\nfeatures to enable separated by commas. If you prefix a feature with `no-`\nthen it is disabled. If you omit a feature, its default value is used.\n\nValid values are:\n\n * `system`\n\n Instruct the system to notify the user using built-in system functions.\n This could result in an audiovisual effect, a notification, or something\n else entirely. Changing these effects require altering system settings:\n for instance under the \"Sound \u003e Alert Sound\" setting in GNOME,\n or the \"Accessibility \u003e System Bell\" settings in KDE Plasma.\n\n On macOS, this plays the system alert sound.\n\n * `audio`\n\n Play a custom sound. (Available since 1.3.0 on macOS)\n\n * `attention` *(enabled by default)*\n\n Request the user's attention when Ghostty is unfocused, until it has\n received focus again. On macOS, this will bounce the app icon in the\n dock once. On Linux, the behavior depends on the desktop environment\n and/or the window manager/compositor:\n\n - On KDE, the background of the desktop icon in the task bar would be\n highlighted;\n\n - On GNOME, you may receive a notification that, when clicked, would\n bring the Ghostty window into focus;\n\n - On Sway, the window may be decorated with a distinctly colored border;\n\n - On other systems this may have no effect at all.\n\n * `title` *(enabled by default)*\n\n Prepend a bell emoji (🔔) to the title of the alerted surface until the\n terminal is re-focused or interacted with (such as on keyboard input).\n\n * `border`\n\n Display a border around the alerted surface until the terminal is\n re-focused or interacted with (such as on keyboard input).\n\n Available since: 1.2.0 on GTK, 1.2.1 on macOS\n\nExample: `audio`, `no-audio`, `system`, `no-system`\n\nAvailable since: 1.2.0", "defaults": [ "no-system,no-audio,attention,title,no-border" ] }, { "key": "bell-audio-path", "zigType": "?Path", "kind": "path", "doc": "If `audio` is an enabled bell feature, this is a path to an audio file. If\nthe path is not absolute, it is considered relative to the directory of the\nconfiguration file that it is referenced from, or from the current working\ndirectory if this is used as a CLI flag. The path may be prefixed with `~/`\nto reference the user's home directory.\n\nAvailable since: 1.2.0 on GTK, 1.3.0 on macOS.", "defaults": [ "" ] }, { "key": "bell-audio-volume", "zigType": "f64", "kind": "float", "min": 0, "max": 1, "doc": "If `audio` is an enabled bell feature, this is the volume to play the audio\nfile at (relative to the system volume). This is a floating point number\nranging from 0.0 (silence) to 1.0 (as loud as possible). The default is 0.5.\n\nAvailable since: 1.2.0 on GTK, 1.3.0 on macOS.", "defaults": [ "0.5" ] }, { "key": "app-notifications", "zigType": "AppNotifications", "kind": "flags", "flags": [ "clipboard-copy", "config-reload" ], "doc": "Control the in-app notifications that Ghostty shows.\n\nOn Linux (GTK), in-app notifications show up as toasts. Toasts appear\noverlaid on top of the terminal window. They are used to show information\nthat is not critical but may be important.\n\nPossible notifications are:\n\n - `clipboard-copy` (default: true) - Show a notification when text is copied\n to the clipboard.\n - `config-reload` (default: true) - Show a notification when\n the configuration is reloaded.\n\nTo specify a notification to enable, specify the name of the notification.\nTo specify a notification to disable, prefix the name with `no-`. For\nexample, to disable `clipboard-copy`, set this configuration to\n`no-clipboard-copy`. To enable it, set this configuration to `clipboard-copy`.\n\nMultiple notifications can be enabled or disabled by separating them\nwith a comma.\n\nA value of \"false\" will disable all notifications. A value of \"true\" will\nenable all notifications.\n\nThis configuration only applies to GTK.\n\nAvailable since: 1.1.0", "defaults": [ "clipboard-copy,config-reload" ] }, { "key": "macos-non-native-fullscreen", "zigType": "NonNativeFullscreen", "kind": "enum", "values": [ "false", "true", "visible-menu", "padded-notch" ], "doc": "If anything other than false, fullscreen mode on macOS will not use the\nnative fullscreen, but make the window fullscreen without animations and\nusing a new space. It's faster than the native fullscreen mode since it\ndoesn't use animations.\n\nImportant: tabs DO NOT WORK in this mode. Non-native fullscreen removes\nthe titlebar and macOS native tabs require the titlebar. If you use tabs,\nyou should not use this mode.\n\nIf you fullscreen a window with tabs, the currently focused tab will\nbecome fullscreen while the others will remain in a separate window in\nthe background. You can switch to that window using normal window-switching\nkeybindings such as command+tilde. When you exit fullscreen, the window\nwill return to the tabbed state it was in before.\n\nAllowable values are:\n\n * `true` - Use non-native macOS fullscreen, hide the menu bar\n * `false` - Use native macOS fullscreen\n * `visible-menu` - Use non-native macOS fullscreen, keep the menu bar\n visible\n * `padded-notch` - Use non-native macOS fullscreen, hide the menu bar,\n but ensure the window is not obscured by the notch on applicable\n devices. The area around the notch will remain transparent currently,\n but in the future we may fill it with the window background color.\n\nChanging this option at runtime works, but will only apply to the next\ntime the window is made fullscreen. If a window is already fullscreen,\nit will retain the previous setting until fullscreen is exited.", "defaults": [ "false" ] }, { "key": "macos-window-buttons", "zigType": "MacWindowButtons", "kind": "enum", "values": [ "visible", "hidden" ], "doc": "Whether the window buttons in the macOS titlebar are visible. The window\nbuttons are the colored buttons in the upper left corner of most macOS apps,\nalso known as the traffic lights, that allow you to close, miniaturize, and\nzoom the window.\n\nThis setting has no effect when `window-decoration = none` or\n`macos-titlebar-style = hidden`, as the window buttons are always hidden in\nthese modes.\n\nValid values are:\n\n * `visible` - Show the window buttons.\n * `hidden` - Hide the window buttons.\n\nThe default value is `visible`.\n\nChanging this option at runtime only applies to new windows.\n\nAvailable since: 1.2.0", "defaults": [ "visible" ] }, { "key": "macos-titlebar-style", "zigType": "MacTitlebarStyle", "kind": "enum", "values": [ "native", "transparent", "tabs", "hidden" ], "doc": "The style of the macOS titlebar. Available values are: \"native\",\n\"transparent\", \"tabs\", and \"hidden\".\n\nThe \"native\" style uses the native macOS titlebar with zero customization.\nThe titlebar will match your window theme (see `window-theme`).\n\nThe \"transparent\" style is the same as \"native\" but the titlebar will\nbe transparent and allow your window background color to come through.\nThis makes a more seamless window appearance but looks a little less\ntypical for a macOS application and may not work well with all themes.\n\nThe \"transparent\" style will also update in real-time to dynamic\nchanges to the window background color, e.g. via OSC 11. To make this\nmore aesthetically pleasing, this only happens if the terminal is\na window, tab, or split that borders the top of the window. This\navoids a disjointed appearance where the titlebar color changes\nbut all the topmost terminals don't match.\n\nThe \"tabs\" style is a completely custom titlebar that integrates the\ntab bar into the titlebar. This titlebar always matches the background\ncolor of the terminal. There are some limitations to this style:\nOn macOS 13 and below, saved window state will not restore tabs correctly.\nmacOS 14 does not have this issue and any other macOS version has not\nbeen tested.\n\nThe \"hidden\" style hides the titlebar. Unlike `window-decoration = none`,\nhowever, it does not remove the frame from the window or cause it to have\nsquared corners. Changing to or from this option at run-time may affect\nexisting windows in buggy ways.\n\nWhen \"hidden\", the top titlebar area can no longer be used for dragging\nthe window. To drag the window, you can use option+click on the resizable\nareas of the frame to drag the window. This is a standard macOS behavior\nand not something Ghostty enables.\n\nThe default value is \"transparent\". This is an opinionated choice\nbut its one I think is the most aesthetically pleasing and works in\nmost cases.\n\nChanging this option at runtime only applies to new windows.", "defaults": [ "transparent" ] }, { "key": "macos-titlebar-proxy-icon", "zigType": "MacTitlebarProxyIcon", "kind": "enum", "values": [ "visible", "hidden" ], "doc": "Whether the proxy icon in the macOS titlebar is visible. The proxy icon\nis the icon that represents the folder of the current working directory.\nYou can see this very clearly in the macOS built-in Terminal.app\ntitlebar.\n\nThe proxy icon is only visible with the native macOS titlebar style.\n\nValid values are:\n\n * `visible` - Show the proxy icon.\n * `hidden` - Hide the proxy icon.\n\nThe default value is `visible`.\n\nThis setting can be changed at runtime and will affect all currently\nopen windows but only after their working directory changes again.\nTherefore, to make this work after changing the setting, you must\nusually `cd` to a different directory, open a different file in an\neditor, etc.", "defaults": [ "visible" ] }, { "key": "macos-dock-drop-behavior", "zigType": "MacOSDockDropBehavior", "kind": "enum", "values": [ "new-tab", "new-window" ], "doc": "Controls the windowing behavior when dropping a file or folder\nonto the Ghostty icon in the macOS dock.\n\nValid values are:\n\n * `new-tab` - Create a new tab in the current window, or open\n a new window if none exist.\n * `new-window` - Create a new window unconditionally.\n\nThe default value is `new-tab`.\n\nThis setting is only supported on macOS and has no effect on other\nplatforms.", "defaults": [ "new-tab" ] }, { "key": "macos-option-as-alt", "zigType": "?inputpkg.OptionAsAlt", "kind": "enum", "values": [ "false", "true", "left", "right" ], "doc": "macOS doesn't have a distinct \"alt\" key and instead has the \"option\"\nkey which behaves slightly differently. On macOS by default, the\noption key plus a character will sometimes produce a Unicode character.\nFor example, on US standard layouts option-b produces \"∫\". This may be\nundesirable if you want to use \"option\" as an \"alt\" key for keybindings\nin terminal programs or shells.\n\nThis configuration lets you change the behavior so that option is treated\nas alt.\n\nThe default behavior (unset) will depend on your active keyboard\nlayout. If your keyboard layout is one of the keyboard layouts listed\nbelow, then the default value is \"true\". Otherwise, the default\nvalue is \"false\". Keyboard layouts with a default value of \"true\" are:\n\n - U.S. Standard\n - U.S. International\n\nNote that if an *Option*-sequence doesn't produce a printable character, it\nwill be treated as *Alt* regardless of this setting. (e.g. `alt+ctrl+a`).\n\nExplicit values that can be set:\n\nIf `true`, the *Option* key will be treated as *Alt*. This makes terminal\nsequences expecting *Alt* to work properly, but will break Unicode input\nsequences on macOS if you use them via the *Alt* key.\n\nYou may set this to `false` to restore the macOS *Alt* key unicode\nsequences but this will break terminal sequences expecting *Alt* to work.\n\nThe values `left` or `right` enable this for the left or right *Option*\nkey, respectively.", "defaults": [ "" ] }, { "key": "macos-window-shadow", "zigType": "bool", "kind": "bool", "doc": "Whether to enable the macOS window shadow. The default value is true.\nWith some window managers and window transparency settings, you may\nfind false more visually appealing.", "defaults": [ "true" ] }, { "key": "macos-hidden", "zigType": "MacHidden", "kind": "enum", "values": [ "never", "always" ], "doc": "If true, the macOS icon in the dock and app switcher will be hidden. This is\nmainly intended for those primarily using the quick-terminal mode.\n\nNote that setting this to true means that keyboard layout changes\nwill no longer be automatic.\n\nControl whether macOS app is excluded from the dock and app switcher,\na \"hidden\" state. This is mainly intended for those primarily using\nquick-terminal mode, but is a general configuration for any use\ncase.\n\nAvailable values:\n\n * `never` - The macOS app is never hidden.\n * `always` - The macOS app is always hidden.\n\nNote: When the macOS application is hidden, keyboard layout changes\nwill no longer be automatic. This is a limitation of macOS.\n\nAvailable since: 1.2.0", "defaults": [ "never" ] }, { "key": "macos-auto-secure-input", "zigType": "bool", "kind": "bool", "doc": "If true, Ghostty on macOS will automatically enable the \"Secure Input\"\nfeature when it detects that a password prompt is being displayed.\n\n\"Secure Input\" is a macOS security feature that prevents applications from\nreading keyboard events. This can always be enabled manually using the\n`Ghostty \u003e Secure Keyboard Entry` menu item.\n\nNote that automatic password prompt detection is based on heuristics\nand may not always work as expected. Specifically, it does not work\nover SSH connections, but there may be other cases where it also\ndoesn't work.\n\nA reason to disable this feature is if you find that it is interfering\nwith legitimate accessibility software (or software that uses the\naccessibility APIs), since secure input prevents any application from\nreading keyboard events.", "defaults": [ "true" ] }, { "key": "macos-secure-input-indication", "zigType": "bool", "kind": "bool", "doc": "If true, Ghostty will show a graphical indication when secure input is\nenabled. This indication is generally recommended to know when secure input\nis enabled.\n\nNormally, secure input is only active when a password prompt is displayed\nor it is manually (and typically temporarily) enabled. However, if you\nalways have secure input enabled, the indication can be distracting and\nyou may want to disable it.", "defaults": [ "true" ] }, { "key": "macos-applescript", "zigType": "bool", "kind": "bool", "doc": "If true, Ghostty exposes and handles the built-in AppleScript dictionary\non macOS.\n\nIf false, all AppleScript interactions are disabled. This includes\nAppleScript commands and AppleScript object lookup for windows, tabs,\nand terminals.\n\nThe default is true.", "defaults": [ "true" ] }, { "key": "macos-icon", "zigType": "MacAppIcon", "kind": "enum", "values": [ "official", "blueprint", "chalkboard", "microchip", "glass", "holographic", "paper", "retro", "xray", "custom", "custom-style" ], "doc": "Customize the macOS app icon.\n\nThis only affects the icon that appears in the dock, application\nswitcher, etc. This does not affect the icon in Finder because\nthat is controlled by a hardcoded value in the signed application\nbundle and can't be changed at runtime. For more details on what\nexactly is affected, see the `NSApplication.icon` Apple documentation;\nthat is the API that is being used to set the icon.\n\nValid values:\n\n * `official` - Use the official Ghostty icon.\n * `blueprint`, `chalkboard`, `microchip`, `glass`, `holographic`,\n `paper`, `retro`, `xray` - Official variants of the Ghostty icon\n hand-created by artists (no AI).\n * `custom` - Use a completely custom icon. The location must be specified\n using the additional `macos-custom-icon` configuration\n * `custom-style` - Use the official Ghostty icon but with custom\n styles applied to various layers. The custom styles must be\n specified using the additional `macos-icon`-prefixed configurations.\n The `macos-icon-ghost-color` and `macos-icon-screen-color`\n configurations are required for this style.\n\nWARNING: The `custom-style` option is _experimental_. We may change\nthe format of the custom styles in the future. We're still finalizing\nthe exact layers and customization options that will be available.\n\nOther caveats:\n\n * The icon in the update dialog will always be the official icon.\n This is because the update dialog is managed through a\n separate framework and cannot be customized without significant\n effort.", "defaults": [ "official" ] }, { "key": "macos-custom-icon", "zigType": "?[:0]const u8", "kind": "path", "doc": "The absolute path to the custom icon file.\nSupported formats include PNG, JPEG, and ICNS.\n\nDefaults to `~/.config/ghostty/Ghostty.icns`", "defaults": [ "" ] }, { "key": "macos-icon-frame", "zigType": "MacAppIconFrame", "kind": "enum", "values": [ "aluminum", "beige", "plastic", "chrome" ], "doc": "The material to use for the frame of the macOS app icon.\n\nValid values:\n\n * `aluminum` - A brushed aluminum frame. This is the default.\n * `beige` - A classic 90's computer beige frame.\n * `plastic` - A glossy, dark plastic frame.\n * `chrome` - A shiny chrome frame.\n\nNote: This configuration is required when `macos-icon` is set to\n`custom-style`.", "defaults": [ "aluminum" ] }, { "key": "macos-icon-ghost-color", "zigType": "?Color", "kind": "color", "doc": "The color of the ghost in the macOS app icon.\n\nNote: This configuration is required when `macos-icon` is set to\n`custom-style`.\n\nSpecified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.", "defaults": [ "" ] }, { "key": "macos-icon-screen-color", "zigType": "?ColorList", "kind": "colorlist", "doc": "The color of the screen in the macOS app icon.\n\nThe screen is a linear gradient so you can specify multiple colors\nthat make up the gradient. Up to 64 comma-separated colors may be\nspecified as either hex (`#RRGGBB` or `RRGGBB`) or as named X11\ncolors. The first color is the bottom of the gradient and the last\ncolor is the top of the gradient.\n\nNote: This configuration is required when `macos-icon` is set to\n`custom-style`.", "defaults": [ "" ] }, { "key": "macos-shortcuts", "zigType": "MacShortcuts", "kind": "enum", "values": [ "allow", "deny", "ask" ], "doc": "Whether macOS Shortcuts are allowed to control Ghostty.\n\nGhostty exposes a number of actions that allow Shortcuts to\ncontrol and interact with Ghostty. This includes creating new\nterminals, sending text to terminals, running commands, invoking\nany keybind action, etc.\n\nThis is a powerful feature but can be a security risk if a malicious\nshortcut is able to be installed and executed. Therefore, this\nconfiguration allows you to disable this feature.\n\nValid values are:\n\n* `ask` - Ask the user whether for permission. Ghostty will remember\n this choice and never ask again. This is similar to other macOS\n permissions such as microphone access, camera access, etc.\n\n* `allow` - Allow Shortcuts to control Ghostty without asking.\n\n* `deny` - Deny Shortcuts from controlling Ghostty.\n\nAvailable since: 1.2.0", "defaults": [ "ask" ] }, { "key": "linux-cgroup", "zigType": "LinuxCgroup", "kind": "enum", "values": [ "never", "always", "single-instance" ], "doc": "Put every surface (tab, split, window) into a transient `systemd` scope.\n\nThis allows per-surface resource management. For example, if a shell program\nis using too much memory, only that shell will be killed by the oom monitor\ninstead of the entire Ghostty process. Similarly, if a shell program is\nusing too much CPU, only that surface will be CPU-throttled.\n\nThis will cause startup times to be slower (a hundred milliseconds or so),\nso the default value is \"single-instance.\" In single-instance mode, only\none instance of Ghostty is running (see gtk-single-instance) so the startup\ntime is a one-time cost. Additionally, single instance Ghostty is much\nmore likely to have many windows, tabs, etc. so cgroup isolation is a\nbig benefit.\n\nThis feature requires `systemd`. If `systemd` is unavailable, cgroup\ninitialization will fail. By default, this will not prevent Ghostty from\nworking (see `linux-cgroup-hard-fail`).\n\nChanging this value and reloading the config will not affect existing\nsurfaces.\n\nValid values are:\n\n * `never` - Never use cgroups.\n * `always` - Always use cgroups.\n * `single-instance` - Enable cgroups only for Ghostty instances launched\n as single-instance applications (see gtk-single-instance).", "defaults": [ "never" ] }, { "key": "linux-cgroup-memory-limit", "zigType": "?u64", "kind": "int", "min": 0, "doc": "Memory limit for any individual terminal process (tab, split, window,\netc.) in bytes. If this is unset then no memory limit will be set.\n\nNote that this sets the `MemoryHigh` setting on the transient `systemd`\nscope, which is a soft limit. You should configure something like\n`systemd-oom` to handle killing processes that have too much memory\npressure.\n\nChanging this value and reloading the config will not affect existing\nsurfaces.\n\nSee the `systemd.resource-control` manual page for more information:\nhttps://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html", "defaults": [ "" ] }, { "key": "linux-cgroup-processes-limit", "zigType": "?u64", "kind": "int", "min": 0, "doc": "Number of processes limit for any individual terminal process (tab, split,\nwindow, etc.). If this is unset then no limit will be set.\n\nNote that this sets the `TasksMax` setting on the transient `systemd` scope,\nwhich is a hard limit.\n\nChanging this value and reloading the config will not affect existing\nsurfaces.\n\nSee the `systemd.resource-control` manual page for more information:\nhttps://www.freedesktop.org/software/systemd/man/latest/systemd.resource-control.html", "defaults": [ "" ] }, { "key": "linux-cgroup-hard-fail", "zigType": "bool", "kind": "bool", "doc": "If this is false, then creating a transient `systemd` scope (for\n`linux-cgroup`) will be allowed to fail and the failure is ignored. This is\nuseful if you view cgroup isolation as a \"nice to have\" and not a critical\nresource management feature, because surface creation will not fail if\n`systemd` APIs fail.\n\nIf this is true, then any transient `systemd` scope creation failure will\ncause surface creation to fail.\n\nChanging this value and reloading the config will not affect existing\nsurfaces.", "defaults": [ "false" ] }, { "key": "gtk-opengl-debug", "zigType": "bool", "kind": "bool", "doc": "Enable or disable GTK's OpenGL debugging logs. The default is `true` for\ndebug builds, `false` for all others.\n\nAvailable since: 1.1.0", "defaults": [ "false" ] }, { "key": "gtk-single-instance", "zigType": "GtkSingleInstance", "kind": "enum", "values": [ "false", "true", "detect" ], "doc": "If `true`, the Ghostty GTK application will run in single-instance mode:\neach new `ghostty` process launched will result in a new window if there is\nalready a running process.\n\nIf `false`, each new ghostty process will launch a separate application.\n\nIf `detect`, Ghostty will assume true (single instance) unless one of\nthe following scenarios is found:\n\n1. TERM_PROGRAM environment variable is a non-empty value. In this\ncase, we assume Ghostty is being launched from a graphical terminal\nsession and you want a dedicated instance.\n\n2. Any CLI arguments exist. In this case, we assume you are passing\ncustom Ghostty configuration. Single instance mode inherits the\nconfiguration from when it was launched, so we must disable single\ninstance to load the new configuration.\n\nIf either of these scenarios is producing a false positive, you can\nset this configuration explicitly to the behavior you want.\n\nThe pre-1.2 option `desktop` has been deprecated. Please replace\nthis with `detect`.\n\nThe default value is `detect`.\n\nNote that debug builds of Ghostty have a separate single-instance ID\nso you can test single instance without conflicting with release builds.", "defaults": [ "detect" ] }, { "key": "gtk-titlebar", "zigType": "bool", "kind": "bool", "doc": "When enabled, the full GTK titlebar is displayed instead of your window\nmanager's simple titlebar. The behavior of this option will vary with your\nwindow manager.\n\nThis option does nothing when `window-decoration` is none or when running\nunder macOS.", "defaults": [ "true" ] }, { "key": "gtk-tabs-location", "zigType": "GtkTabsLocation", "kind": "enum", "values": [ "top", "bottom" ], "doc": "Determines the side of the screen that the GTK tab bar will stick to.\nTop, bottom, and hidden are supported. The default is top.\n\nWhen `hidden` is set, a tab button displaying the number of tabs will appear\nin the title bar. It has the ability to open a tab overview for displaying\ntabs. Alternatively, you can use the `toggle_tab_overview` action in a\nkeybind if your window doesn't have a title bar, or you can switch tabs\nwith keybinds.", "defaults": [ "top" ] }, { "key": "gtk-tabs-inverted", "zigType": "bool", "kind": "bool", "doc": "If true, the close button of each tab is shown at the start of the tab\n(the left, in left-to-right languages) and the tab's icon at the end.\nThis applies to both the tab bar and the tab overview. GTK only.\n\nAvailable since: 1.4.0", "defaults": [ "false" ] }, { "key": "gtk-titlebar-hide-when-maximized", "zigType": "bool", "kind": "bool", "doc": "If this is `true`, the titlebar will be hidden when the window is maximized,\nand shown when the titlebar is unmaximized. GTK only.\n\nAvailable since: 1.1.0", "defaults": [ "false" ] }, { "key": "gtk-toolbar-style", "zigType": "GtkToolbarStyle", "kind": "enum", "values": [ "flat", "raised", "raised-border" ], "doc": "Determines the appearance of the top and bottom bars tab bar.\n\nValid values are:\n\n * `flat` - Top and bottom bars are flat with the terminal window.\n * `raised` - Top and bottom bars cast a shadow on the terminal area.\n * `raised-border` - Similar to `raised` but the shadow is replaced with a\n more subtle border.", "defaults": [ "raised" ] }, { "key": "gtk-titlebar-style", "zigType": "GtkTitlebarStyle", "kind": "enum", "values": [ "native", "tabs" ], "doc": "The style of the GTK titlebar. Available values are `native` and `tabs`.\n\nThe `native` titlebar style is a traditional titlebar with a title, a few\nbuttons and window controls. A separate tab bar will show up below the\ntitlebar if you have multiple tabs open in the window.\n\nThe `tabs` titlebar merges the tab bar and the traditional titlebar.\nThis frees up vertical space on your screen if you use multiple tabs. One\nlimitation of the `tabs` titlebar is that you cannot drag the titlebar\nby the titles any longer (as they are tab titles now). Other areas of the\n`tabs` title bar can be used to drag the window around.\n\nThe default style is `native`.", "defaults": [ "native" ] }, { "key": "gtk-wide-tabs", "zigType": "bool", "kind": "bool", "doc": "If `true` (default), then the Ghostty GTK tabs will be \"wide.\" Wide tabs\nare the new typical Gnome style where tabs fill their available space.\nIf you set this to `false` then tabs will only take up space they need,\nwhich is the old style.", "defaults": [ "true" ] }, { "key": "gtk-horizontal-tab-scroll", "zigType": "bool", "kind": "bool", "doc": "If `true` (default), then two-finger horizontal scrolling on a touchpad\nwill switch between tabs. Scrolling left goes to the next tab and\nscrolling right goes to the previous tab. Set this to `false` to\ndisable this behavior.\n\nAvailable since 1.4.0.", "defaults": [ "true" ] }, { "key": "gtk-custom-css", "zigType": "RepeatablePath", "kind": "path", "repeatable": true, "hint": "prefix with ? to make the file optional", "doc": "Custom CSS files to be loaded.\n\nGTK CSS documentation can be found at the following links:\n\n * https://docs.gtk.org/gtk4/css-overview.html - An overview of GTK CSS.\n * https://docs.gtk.org/gtk4/css-properties.html - A comprehensive list\n of supported CSS properties.\n\nLaunch Ghostty with `env GTK_DEBUG=interactive ghostty` to tweak Ghostty's\nCSS in real time using the GTK Inspector. Errors in your CSS files would\nalso be reported in the terminal you started Ghostty from. See\nhttps://developer.gnome.org/documentation/tools/inspector.html for more\ninformation about the GTK Inspector.\n\nThis configuration can be repeated multiple times to load multiple files.\nPrepend a ? character to the file path to suppress errors if the file does\nnot exist. If you want to include a file that begins with a literal ?\ncharacter, surround the file path in double quotes (\").\nThe file size limit for a single stylesheet is 5MiB.\n\nAvailable since: 1.1.0", "defaults": [ "" ] }, { "key": "desktop-notifications", "zigType": "bool", "kind": "bool", "doc": "If `true` (default), applications running in the terminal can show desktop\nnotifications using certain escape sequences such as OSC 9 or OSC 777.", "defaults": [ "true" ] }, { "key": "progress-style", "zigType": "bool", "kind": "bool", "doc": "If `true` (default), applications running in the terminal can show\ngraphical progress bars using the ConEmu OSC 9;4 escape sequence.\nIf `false`, progress bar sequences are silently ignored.", "defaults": [ "true" ] }, { "key": "bold-color", "zigType": "?BoldColor", "kind": "color", "values": [ "bright" ], "doc": "Modifies the color used for bold text in the terminal.\n\nThis can be set to a specific color, using the same format as\n`background` or `foreground` (e.g. `#RRGGBB` but other formats\nare also supported; see the aforementioned documentation). If a\nspecific color is set, this color will always be used for the default\nbold text color. It will set the rest of the bold colors to `bright`.\n\nThis can also be set to `bright`, which uses the bright color palette\nfor bold text. For example, if the text is red, then the bold will\nuse the bright red color. The terminal palette is set with `palette`\nbut can also be overridden by the terminal application itself using\nescape sequences such as OSC 4. (Since Ghostty 1.2.0, the previous\nconfiguration `bold-is-bright` is deprecated and replaced by this\nusage).\n\nAvailable since Ghostty 1.2.0.", "defaults": [ "" ] }, { "key": "faint-opacity", "zigType": "f64", "kind": "float", "min": 0, "max": 1, "doc": "The opacity level (opposite of transparency) of the faint text. A value of\n1 is fully opaque and a value of 0 is fully transparent. A value less than 0\nor greater than 1 will be clamped to the nearest valid value.\n\nAvailable since Ghostty 1.2.0.", "defaults": [ "0.5" ] }, { "key": "term", "zigType": "[]const u8", "kind": "text", "doc": "This will be used to set the `TERM` environment variable.\nHACK: We set this with an `xterm` prefix because vim uses that to enable key\nprotocols (specifically this will enable `modifyOtherKeys`), among other\nfeatures. An option exists in vim to modify this: `:set\nkeyprotocol=ghostty:kitty`, however a bug in the implementation prevents it\nfrom working properly. https://github.com/vim/vim/pull/13211 fixes this.", "defaults": [ "xterm-ghostty" ] }, { "key": "enquiry-response", "zigType": "[]const u8", "kind": "text", "doc": "String to send when we receive `ENQ` (`0x05`) from the command that we are\nrunning. Defaults to an empty string if not set.", "defaults": [ "" ] }, { "key": "async-backend", "zigType": "AsyncBackend", "kind": "enum", "values": [ "auto", "epoll", "io_uring" ], "doc": "Configures the low-level API to use for async IO, eventing, etc.\n\nMost users should leave this set to `auto`. This will automatically detect\nscenarios where APIs may not be available (for example `io_uring` on\ncertain hardened kernels) and fall back to a different API. However, if\nyou want to force a specific backend for any reason, you can set this\nhere.\n\nBased on various benchmarks, we haven't found a statistically significant\ndifference between the backends with regards to memory, CPU, or latency.\nThe choice of backend is more about compatibility and features.\n\nAvailable options:\n\n * `auto` - Automatically choose the best backend for the platform\n based on available options.\n * `epoll` - Use the `epoll` API\n * `io_uring` - Use the `io_uring` API\n\nIf the selected backend is not available on the platform, Ghostty will\nfall back to an automatically chosen backend that is available.\n\nChanging this value requires a full application restart to take effect.\n\nThis is only supported on Linux, since this is the only platform\nwhere we have multiple options. On macOS, we always use `kqueue`.\n\nAvailable since: 1.2.0", "defaults": [ "auto" ] }, { "key": "auto-update", "zigType": "?AutoUpdate", "kind": "enum", "values": [ "off", "check", "download" ], "doc": "Control the auto-update functionality of Ghostty. This is only supported\non macOS currently, since Linux builds are distributed via package\nmanagers that are not centrally controlled by Ghostty.\n\nChecking or downloading an update does not send any information to\nthe project beyond standard network information mandated by the\nunderlying protocols. To put it another way: Ghostty doesn't explicitly\nadd any tracking to the update process. The update process works by\ndownloading information about the latest version and comparing it\nclient-side to the current version.\n\nValid values are:\n\n * `off` - Disable auto-updates.\n * `check` - Check for updates and notify the user if an update is\n available, but do not automatically download or install the update.\n * `download` - Check for updates, automatically download the update,\n notify the user, but do not automatically install the update.\n\nIf unset, we defer to Sparkle's default behavior, which respects the\npreference stored in the standard user defaults (`defaults(1)`).\n\nChanging this value at runtime works after a small delay.", "defaults": [ "" ] }, { "key": "auto-update-channel", "zigType": "?build_config.ReleaseChannel", "kind": "enum", "values": [ "stable", "tip" ], "doc": "The release channel to use for auto-updates.\n\nThe default value of this matches the release channel of the currently\nrunning Ghostty version. If you download a pre-release version of Ghostty\nthen this will be set to `tip` and you will receive pre-release updates.\nIf you download a stable version of Ghostty then this will be set to\n`stable` and you will receive stable updates.\n\nValid values are:\n\n * `stable` - Stable, tagged releases such as \"1.0.0\".\n * `tip` - Pre-release versions generated from each commit to the\n main branch. This is the version that was in use during private\n beta testing by thousands of people. It is generally stable but\n will likely have more bugs than the stable channel.\n\nChanging this configuration requires a full restart of\nGhostty to take effect.\n\nThis only works on macOS since only macOS has an auto-update feature.", "defaults": [ "" ] }, { "key": "quick-terminal-size", "zigType": "QuickTerminalSize", "kind": "text", "hint": "e.g. 50%, 400px or 50%,500px", "doc": "The size of the quick terminal.\n\nThe size can be specified either as a percentage of the screen dimensions\n(height/width), or as an absolute size in pixels. Percentage values are\nsuffixed with `%` (e.g. `20%`) while pixel values are suffixed with `px`\n(e.g. `300px`). A bare value without a suffix is a config error.\n\nWhen only one size is specified, the size parameter affects the size of\nthe quick terminal on its *primary axis*, which depends on its position:\nheight for quick terminals placed on the top or bottom, and width for left\nor right. The primary axis of a centered quick terminal depends on the\nmonitor's orientation: height when on a landscape monitor, and width when\non a portrait monitor.\n\nThe *secondary axis* would be maximized for non-center positioned\nquick terminals unless another size parameter is specified, separated\nfrom the first by a comma (`,`). Percentage and pixel sizes can be mixed\ntogether: for instance, a size of `50%,500px` for a top-positioned quick\nterminal would be half a screen tall, and 500 pixels wide.\n\nAvailable since: 1.2.0", "notListed": true } ], "compat": [ { "key": "background-blur-radius", "renamedTo": "background-blur" }, { "key": "adw-toolbar-style", "renamedTo": "gtk-toolbar-style" }, { "key": "gtk-tabs-location", "values": [ "hidden" ], "sets": [ "window-show-tab-bar" ] }, { "key": "cursor-invert-fg-bg", "sets": [ "cursor-color", "cursor-text" ] }, { "key": "selection-invert-fg-bg", "sets": [ "selection-foreground", "selection-background" ] }, { "key": "bold-is-bright", "sets": [ "bold-color" ] }, { "key": "gtk-single-instance", "values": [ "desktop" ] }, { "key": "macos-dock-drop-behavior", "values": [ "window" ] }, { "key": "scrollback-limit", "renamedTo": "scrollback-limit-bytes" }, { "key": "copy-on-select", "values": [ "true", "false" ] } ] }