mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-25 17:52:02 +02:00
Add an example for how to get a single color from @ get-colors
This commit is contained in:
@@ -23,7 +23,10 @@ class GetColors(RemoteCommand):
|
|||||||
short_desc = 'Get terminal colors'
|
short_desc = 'Get terminal colors'
|
||||||
desc = (
|
desc = (
|
||||||
'Get the terminal colors for the specified window (defaults to active window).'
|
'Get the terminal colors for the specified window (defaults to active window).'
|
||||||
' Colors will be output to stdout in the same syntax as used for :file:`kitty.conf`.'
|
' Colors will be output to STDOUT in the same syntax as used for :file:`kitty.conf`.'
|
||||||
|
'\n\nTo get a single color use:'
|
||||||
|
'\n get-colors | grep "^background " | tr -s | cut -d" " -f2'
|
||||||
|
'\n\nChange background above to whatever color you are interested in.'
|
||||||
)
|
)
|
||||||
options_spec = '''\
|
options_spec = '''\
|
||||||
--configured -c
|
--configured -c
|
||||||
|
|||||||
Reference in New Issue
Block a user