Start work on remote control passwords

This commit is contained in:
Kovid Goyal
2022-08-10 12:36:04 +05:30
parent 31be4f041e
commit e64b1ba67c
6 changed files with 65 additions and 18 deletions
+10 -5
View File
@@ -13,11 +13,11 @@ from kitty.options.utils import (
deprecated_macos_show_window_title_in_menubar_alias, deprecated_send_text, disable_ligatures,
edge_width, env, font_features, hide_window_decorations, macos_option_as_alt, macos_titlebar_color,
modify_font, narrow_symbols, optional_edge_width, parse_map, parse_mouse_map, paste_actions,
resize_draw_strategy, scrollback_lines, scrollback_pager_history_size, shell_integration,
store_multiple, symbol_map, tab_activity_symbol, tab_bar_edge, tab_bar_margin_height,
tab_bar_min_tabs, tab_fade, tab_font_style, tab_separator, tab_title_template, titlebar_color,
to_cursor_shape, to_font_size, to_layout_names, to_modifiers, url_prefixes, url_style,
visual_window_select_characters, window_border_width, window_size
remote_control_password, resize_draw_strategy, scrollback_lines, scrollback_pager_history_size,
shell_integration, store_multiple, symbol_map, tab_activity_symbol, tab_bar_edge,
tab_bar_margin_height, tab_bar_min_tabs, tab_fade, tab_font_style, tab_separator,
tab_title_template, titlebar_color, to_cursor_shape, to_font_size, to_layout_names, to_modifiers,
url_prefixes, url_style, visual_window_select_characters, window_border_width, window_size
)
@@ -1131,6 +1131,10 @@ class Parser:
def remember_window_size(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['remember_window_size'] = to_bool(val)
def remote_control_password(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
for k, v in remote_control_password(val, ans["remote_control_password"]):
ans["remote_control_password"][k] = v
def repaint_delay(self, val: str, ans: typing.Dict[str, typing.Any]) -> None:
ans['repaint_delay'] = positive_int(val)
@@ -1370,6 +1374,7 @@ def create_result_dict() -> typing.Dict[str, typing.Any]:
'kitten_alias': {},
'modify_font': {},
'narrow_symbols': {},
'remote_control_password': {},
'symbol_map': {},
'watcher': {},
'map': [],