@@ -408,17 +408,20 @@ be fixed in a future update:
408
408
## ` background `
409
409
410
410
Background color for the window.
411
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
411
412
412
413
## ` foreground `
413
414
414
415
Foreground color for the window.
416
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
415
417
416
418
## ` selection-foreground `
417
419
## ` selection-background `
418
420
419
421
The foreground and background color for selection. If this is not set, then
420
422
the selection color is just the inverted window background and foreground
421
423
(note: not to be confused with the cell bg/fg).
424
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
422
425
423
426
## ` selection-invert-fg-bg `
424
427
@@ -446,16 +449,21 @@ This value does not apply to Emoji or images.
446
449
## ` palette `
447
450
448
451
Color palette for the 256 color form that many terminal applications use.
449
- The syntax of this configuration is ` N=HEXCODE ` where ` N ` is 0 to 255 (for
450
- the 256 colors in the terminal color table) and ` HEXCODE ` is a typical RGB
451
- color code such as ` #AABBCC ` .
452
+ The syntax of this configuration is ` N=COLOR ` where ` N ` is 0 to 255 (for
453
+ the 256 colors in the terminal color table) and ` COLOR ` is a typical RGB
454
+ color code such as ` #AABBCC ` or ` AABBCC ` , or a named X11 color .
452
455
453
- For definitions on all the codes [ see this cheat
454
- sheet] ( https://www.ditig.com/256-colors-cheat-sheet ) .
456
+ The palette index can be in decimal, binary, octal, or hexadecimal.
457
+ Decimal is assumed unless a prefix is used: ` 0b ` for binary, ` 0o ` for octal,
458
+ and ` 0x ` for hexadecimal.
459
+
460
+ For definitions on the color indices and what they canonically map to,
461
+ [ see this cheat sheet] ( https://www.ditig.com/256-colors-cheat-sheet ) .
455
462
456
463
## ` cursor-color `
457
464
458
465
The color of the cursor. If this is not set, a default will be chosen.
466
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
459
467
460
468
## ` cursor-invert-fg-bg `
461
469
@@ -514,6 +522,7 @@ Valid values are:
514
522
515
523
The color of the text under the cursor. If this is not set, a default will
516
524
be chosen.
525
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
517
526
518
527
## ` cursor-click-to-move `
519
528
@@ -573,7 +582,7 @@ Multiplier for scrolling distance with the mouse wheel. Any value less
573
582
than 0.01 or greater than 10,000 will be clamped to the nearest valid
574
583
value.
575
584
576
- A value of "1" (default) scrolls te default amount. A value of "2" scrolls
585
+ A value of "1" (default) scrolls the default amount. A value of "2" scrolls
577
586
double the default amount. A value of "0.5" scrolls half the default amount.
578
587
Et cetera.
579
588
@@ -616,6 +625,8 @@ that rectangle and can be used to carefully control the dimming effect.
616
625
617
626
This will default to the background color.
618
627
628
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
629
+
619
630
## ` command `
620
631
621
632
The command to run, usually a shell. If this is not an absolute path, it'll
@@ -762,7 +773,7 @@ default value of the running program.
762
773
This configuration can be reloaded at runtime. If it is set, the title
763
774
will update for all windows. If it is unset, the next title change escape
764
775
sequence will be honored but previous changes will not retroactively
765
- be set. This latter case may require you restart programs such as neovim
776
+ be set. This latter case may require you to restart programs such as Neovim
766
777
to get the new title.
767
778
768
779
## ` class `
@@ -1217,12 +1228,16 @@ Background color for the window titlebar. This only takes effect if
1217
1228
window-theme is set to ghostty. Currently only supported in the GTK app
1218
1229
runtime.
1219
1230
1231
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
1232
+
1220
1233
## ` window-titlebar-foreground `
1221
1234
1222
1235
Foreground color for the window titlebar. This only takes effect if
1223
1236
window-theme is set to ghostty. Currently only supported in the GTK app
1224
1237
runtime.
1225
1238
1239
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
1240
+
1226
1241
## ` resize-overlay `
1227
1242
1228
1243
This controls when resize overlays are shown. Resize overlays are a
@@ -1879,24 +1894,22 @@ This only has an effect when `macos-icon` is set to `custom-style`.
1879
1894
1880
1895
The color of the ghost in the macOS app icon.
1881
1896
1882
- The format of the color is the same as the ` background ` configuration;
1883
- see that for more information.
1884
-
1885
1897
<Note >
1886
1898
This configuration is required when ` macos-icon ` is set to
1887
1899
` custom-style ` .
1888
1900
</Note >
1889
1901
1890
1902
This only has an effect when ` macos-icon ` is set to ` custom-style ` .
1891
1903
1904
+ Specified as either hex (` #RRGGBB ` or ` RRGGBB ` ) or a named X11 color.
1905
+
1892
1906
## ` macos-icon-screen-color `
1893
1907
1894
1908
The color of the screen in the macOS app icon.
1895
1909
1896
1910
The screen is a gradient so you can specify multiple colors that
1897
- make up the gradient. Colors should be separated by commas. The
1898
- format of the color is the same as the ` background ` configuration;
1899
- see that for more information.
1911
+ make up the gradient. Comma-separated colors may be specified as
1912
+ as either hex (` #RRGGBB ` or ` RRGGBB ` ) or as named X11 colors.
1900
1913
1901
1914
<Note >
1902
1915
This configuration is required when ` macos-icon ` is set to
0 commit comments