mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-21 14:46:28 +00:00
Allow completion for show_key kitten
Use the lowercase form of kitty.
This commit is contained in:
parent
5bba1a0851
commit
9f1c9529aa
2 changed files with 7 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ def format_mods(mods: int) -> str:
|
|||
class KeysHandler(Handler):
|
||||
|
||||
def initialize(self) -> None:
|
||||
self.cmd.set_window_title('Kitty extended keyboard protocol demo')
|
||||
self.cmd.set_window_title('kitty extended keyboard protocol demo')
|
||||
self.cmd.set_cursor_visible(False)
|
||||
self.print('Press any keys - Ctrl+C or Ctrl+D will terminate')
|
||||
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ reset and :code:`application` mode is with DECCKM set. :code:`kitty` is the full
|
|||
kitty extended keyboard protocol.
|
||||
'''.format
|
||||
help_text = 'Show the codes generated by the terminal for key presses in various keyboard modes'
|
||||
usage = ''
|
||||
|
||||
|
||||
def main(args: List[str]) -> None:
|
||||
|
|
@ -80,3 +81,8 @@ def main(args: List[str]) -> None:
|
|||
|
||||
if __name__ == '__main__':
|
||||
main(sys.argv)
|
||||
elif __name__ == '__doc__':
|
||||
cd = sys.cli_docs # type: ignore
|
||||
cd['usage'] = usage
|
||||
cd['options'] = OPTIONS
|
||||
cd['help_text'] = help_text
|
||||
Loading…
Add table
Add a link
Reference in a new issue