Add --debug-input for panel and quick access terminals

This commit is contained in:
Kovid Goyal
2025-07-12 07:29:42 +05:30
parent f34007c65a
commit b01b73a8e5
4 changed files with 15 additions and 0 deletions

View File

@@ -153,6 +153,8 @@ def actual_main(sys_args: list[str]) -> None:
sys.argv = ['kitty']
if args.debug_rendering:
sys.argv.append('--debug-rendering')
if args.debug_input:
sys.argv.append('--debug-input')
for config in args.config:
sys.argv.extend(('--config', config))
if not is_macos:

View File

@@ -83,6 +83,9 @@ func main(cmd *cli.Command, opts *Options, args []string) (rc int, err error) {
if opts.DebugRendering {
argv = append(argv, `--debug-rendering`)
}
if opts.DebugInput {
argv = append(argv, `--debug-input`)
}
if opts.Detach {
argv = append(argv, `--detach`)
}

View File

@@ -116,6 +116,11 @@ The unique name of this quick access terminal Use a different name if you want m
--debug-rendering
type=bool-set
For debugging interactions with the compositor/window manager.
--debug-input
type=bool-set
For debugging interactions with the compositor/window manager.
'''
def main(args: list[str]) -> None:

View File

@@ -765,6 +765,11 @@ Path to a log file to store STDOUT/STDERR when using :option:`--detach`
--debug-rendering
type=bool-set
For internal debugging use.
--debug-input
type=bool-set
For internal debugging use.
'''.format(
appname=appname, listen_on_defn=listen_on_defn, grab_keyboard_docs=grab_keyboard_docs,
wait_for_single_instance_defn=wait_for_single_instance_defn, **d)