Add an example for how to get a single color from @ get-colors

This commit is contained in:
Kovid Goyal
2023-07-10 12:41:33 +05:30
parent 4f8843c5fd
commit af8db1eb8f

View File

@@ -23,7 +23,10 @@ class GetColors(RemoteCommand):
short_desc = 'Get terminal colors'
desc = (
'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 = '''\
--configured -c