mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-19 23:14:55 +02:00
Allow completion for show_key kitten
Use the lowercase form of kitty.
This commit is contained in:
@@ -34,7 +34,7 @@ def format_mods(mods: int) -> str:
|
|||||||
class KeysHandler(Handler):
|
class KeysHandler(Handler):
|
||||||
|
|
||||||
def initialize(self) -> None:
|
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.cmd.set_cursor_visible(False)
|
||||||
self.print('Press any keys - Ctrl+C or Ctrl+D will terminate')
|
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.
|
kitty extended keyboard protocol.
|
||||||
'''.format
|
'''.format
|
||||||
help_text = 'Show the codes generated by the terminal for key presses in various keyboard modes'
|
help_text = 'Show the codes generated by the terminal for key presses in various keyboard modes'
|
||||||
|
usage = ''
|
||||||
|
|
||||||
|
|
||||||
def main(args: List[str]) -> None:
|
def main(args: List[str]) -> None:
|
||||||
@@ -80,3 +81,8 @@ def main(args: List[str]) -> None:
|
|||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main(sys.argv)
|
main(sys.argv)
|
||||||
|
elif __name__ == '__doc__':
|
||||||
|
cd = sys.cli_docs # type: ignore
|
||||||
|
cd['usage'] = usage
|
||||||
|
cd['options'] = OPTIONS
|
||||||
|
cd['help_text'] = help_text
|
||||||
Reference in New Issue
Block a user