Allow completion for show_key kitten

Use the lowercase form of kitty.
This commit is contained in:
pagedown 2022-08-09 12:15:48 +08:00
parent 5bba1a0851
commit 9f1c9529aa
No known key found for this signature in database
GPG Key ID: E921CF18AC8FF6EB
2 changed files with 7 additions and 1 deletions

View File

@ -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')

View File

@ -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